imdone-core 2.1.4 → 2.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/release.yml +70 -0
- package/.imdone-cli.yml +2 -1
- package/CHANGELOG.md +12 -0
- package/package.json +2 -2
- package/vitest.config.js +16 -5
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: write
|
|
10
|
+
|
|
11
|
+
concurrency:
|
|
12
|
+
group: release-${{ github.ref }}
|
|
13
|
+
cancel-in-progress: false
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
release:
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
|
|
19
|
+
steps:
|
|
20
|
+
- name: Checkout
|
|
21
|
+
uses: actions/checkout@v4
|
|
22
|
+
with:
|
|
23
|
+
fetch-depth: 0
|
|
24
|
+
|
|
25
|
+
- name: Use Node.js
|
|
26
|
+
uses: actions/setup-node@v4
|
|
27
|
+
with:
|
|
28
|
+
node-version: 22.x
|
|
29
|
+
cache: npm
|
|
30
|
+
|
|
31
|
+
- name: Install dependencies
|
|
32
|
+
run: npm ci
|
|
33
|
+
|
|
34
|
+
- name: Test
|
|
35
|
+
run: npm test
|
|
36
|
+
|
|
37
|
+
- name: Read package version
|
|
38
|
+
id: package
|
|
39
|
+
run: |
|
|
40
|
+
VERSION="$(node -p "require('./package.json').version")"
|
|
41
|
+
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
|
|
42
|
+
echo "tag=v$VERSION" >> "$GITHUB_OUTPUT"
|
|
43
|
+
|
|
44
|
+
- name: Check for existing release
|
|
45
|
+
id: release
|
|
46
|
+
env:
|
|
47
|
+
GH_TOKEN: ${{ github.token }}
|
|
48
|
+
TAG: ${{ steps.package.outputs.tag }}
|
|
49
|
+
run: |
|
|
50
|
+
if gh release view "$TAG" >/dev/null 2>&1; then
|
|
51
|
+
echo "exists=true" >> "$GITHUB_OUTPUT"
|
|
52
|
+
else
|
|
53
|
+
echo "exists=false" >> "$GITHUB_OUTPUT"
|
|
54
|
+
fi
|
|
55
|
+
|
|
56
|
+
- name: Create GitHub release
|
|
57
|
+
if: steps.release.outputs.exists == 'false'
|
|
58
|
+
env:
|
|
59
|
+
GH_TOKEN: ${{ github.token }}
|
|
60
|
+
TAG: ${{ steps.package.outputs.tag }}
|
|
61
|
+
VERSION: ${{ steps.package.outputs.version }}
|
|
62
|
+
run: |
|
|
63
|
+
gh release create "$TAG" \
|
|
64
|
+
--target "$GITHUB_SHA" \
|
|
65
|
+
--title "$VERSION" \
|
|
66
|
+
--generate-notes
|
|
67
|
+
|
|
68
|
+
- name: Skip existing release
|
|
69
|
+
if: steps.release.outputs.exists == 'true'
|
|
70
|
+
run: echo "Release ${{ steps.package.outputs.tag }} already exists; skipping."
|
package/.imdone-cli.yml
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 2.1.5
|
|
2
|
+
|
|
3
|
+
- Create GitHub releases automatically from the npm package version when changes merge to `master`.
|
|
4
|
+
- Improve test coverage for environment detection, board actions, views, and view retrieval.
|
|
5
|
+
- Add enforced coverage thresholds to prevent coverage regressions.
|
|
6
|
+
- Update `monquery` to `0.2.2`.
|
|
7
|
+
- Update the imdone CLI project config to use the GitHub provider format.
|
|
8
|
+
|
|
9
|
+
## 2.1.4
|
|
10
|
+
|
|
11
|
+
- Remove the deprecated `node-fetch` dependency from plugin downloads so installs no longer pull in `node-domexception`.
|
|
12
|
+
|
|
1
13
|
## 2.1.3
|
|
2
14
|
|
|
3
15
|
- Update imdone-api dependency
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "imdone-core",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.5",
|
|
4
4
|
"description": "imdone-core",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"markdown-it-emoji": "^2.0.0",
|
|
85
85
|
"markdown-it-mark": "^3.0.1",
|
|
86
86
|
"moment": "^2.29.1",
|
|
87
|
-
"monquery": "github:imdone/node-monquery#0.2.
|
|
87
|
+
"monquery": "github:imdone/node-monquery#0.2.2",
|
|
88
88
|
"multilang-extract-comments": "^0.4.0",
|
|
89
89
|
"open": "^9.1.0",
|
|
90
90
|
"ora": "^8.2.0",
|
package/vitest.config.js
CHANGED
|
@@ -2,14 +2,25 @@ import { defineConfig } from 'vitest/config';
|
|
|
2
2
|
|
|
3
3
|
export default defineConfig({
|
|
4
4
|
test: {
|
|
5
|
-
include: ['lib/**/*.spec.js'],
|
|
5
|
+
include: ['lib/**/*.spec.js'],
|
|
6
6
|
coverage: {
|
|
7
|
-
provider: "v8",
|
|
8
|
-
reporter: ["text"],
|
|
7
|
+
provider: "v8",
|
|
8
|
+
reporter: ["text"],
|
|
9
9
|
clean: false,
|
|
10
10
|
reportOnFailure: true,
|
|
11
|
-
include: ['lib'],
|
|
12
|
-
exclude: [
|
|
11
|
+
include: ['lib/**/*.js'],
|
|
12
|
+
exclude: [
|
|
13
|
+
'_lib',
|
|
14
|
+
'lib/**/index.*',
|
|
15
|
+
'lib/**/__tests__/**',
|
|
16
|
+
'lib/**/*.spec.js',
|
|
17
|
+
],
|
|
18
|
+
thresholds: {
|
|
19
|
+
statements: 87,
|
|
20
|
+
branches: 83,
|
|
21
|
+
functions: 80,
|
|
22
|
+
lines: 87,
|
|
23
|
+
},
|
|
13
24
|
},
|
|
14
25
|
},
|
|
15
26
|
});
|