Skip to content

Commit 45a7906

Browse files
authored
fix: Fix NPM release (#244)
1 parent 7794bb6 commit 45a7906

File tree

7 files changed

+1914
-1625
lines changed

7 files changed

+1914
-1625
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout 🛎️
11-
uses: actions/checkout@v3
11+
uses: actions/checkout@v6
1212
with:
1313
persist-credentials: false
1414
- name: Install and Build 🔧

.github/workflows/lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
name: Lint
1+
name: Lint
22
on: [push, pull_request]
33
jobs:
44
lint:
55
name: Lint
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v3
9-
- uses: actions/setup-node@v3
8+
- uses: actions/checkout@v6
9+
- uses: actions/setup-node@v6
1010
with:
11-
node-version: '18.x'
11+
node-version: 24
1212
- run: yarn install
1313
- run: yarn lint

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99

1010
permissions:
1111
contents: write
12+
issues: write
13+
pull-requests: write
1214
id-token: write
1315

1416
jobs:
@@ -31,7 +33,7 @@ jobs:
3133
- name: Build package
3234
run: yarn build
3335

34-
- name: Semantic Release
36+
- name: Semantic Release (dry-run)
3537
env:
3638
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3739
run: yarn semantic-release --dry-run --no-ci
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
name: Test coverage
1+
name: Test coverage
22
on: [push, pull_request]
33
jobs:
44
lint:
55
name: Lint
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v3
9-
- uses: actions/setup-node@v3
8+
- uses: actions/checkout@v6
9+
- uses: actions/setup-node@v6
1010
with:
11-
node-version: '18.x'
11+
node-version: 24
1212
- run: yarn install
1313
- run: yarn test.coverage

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
},
2929
"devDependencies": {
3030
"@semantic-release/changelog": "^5.0.1",
31+
"@semantic-release/exec": "^7.1.0",
3132
"@semantic-release/git": "^9.0.0",
3233
"@types/jest": "^26.0.3",
3334
"@typescript-eslint/eslint-plugin": "^2.0.0",
@@ -37,7 +38,7 @@
3738
"jest": "^29.7.0",
3839
"jest-environment-jsdom": "^29.7.0",
3940
"microbundle": "^0.15.1",
40-
"semantic-release": "^19.0.3",
41+
"semantic-release": "^25.0.2",
4142
"ts-jest": "^29.1.1",
4243
"typescript": "^4.3.0",
4344
"vuepress": "^1.9.10",

release.config.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@ module.exports = {
33
"@semantic-release/commit-analyzer",
44
"@semantic-release/release-notes-generator",
55
"@semantic-release/changelog",
6-
["@semantic-release/npm", {
7-
"tarballDir": "release"
8-
}],
6+
[
7+
"@semantic-release/exec",
8+
{
9+
prepareCmd: "npm version ${nextRelease.version} --no-git-tag-version",
10+
publishCmd: "npm publish --provenance"
11+
}
12+
],
913
"@semantic-release/git"
1014
],
1115
"preset": "angular"

0 commit comments

Comments
 (0)