Skip to content

Commit c9a81d0

Browse files
committed
fix(ci): bypass semantic-release npm publish for trusted publisher
1 parent ac954d1 commit c9a81d0

3 files changed

Lines changed: 31 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ jobs:
4949
pnpm run semantic-release
5050
env:
5151
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52-
NPM_TOKEN: ${{ env.NODE_AUTH_TOKEN }}
5352
sbom:
5453
runs-on: ubuntu-latest
5554
permissions:

package.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"@jest/transform": "29.7.0",
3939
"@jest/types": "29.6.3",
4040
"@semantic-release/changelog": "6.0.3",
41+
"@semantic-release/exec": "7.1.0",
4142
"@semantic-release/git": "10.0.1",
4243
"@semantic-release/npm": "13.1.3",
4344
"@types/signale": "1.4.7",
@@ -71,11 +72,18 @@
7172
"path": "@semantic-release/changelog",
7273
"changelogFile": "CHANGELOG.md"
7374
},
74-
"@semantic-release/npm",
75+
{
76+
"path": "@semantic-release/npm",
77+
"npmPublish": false,
78+
"tarballDir": "dist"
79+
},
7580
"@semantic-release/git"
7681
],
7782
"publish": [
78-
"@semantic-release/npm",
83+
{
84+
"path": "@semantic-release/exec",
85+
"publishCmd": "npm publish ./dist/*.tgz"
86+
},
7987
"@semantic-release/github"
8088
],
8189
"generateNotes": [

pnpm-lock.yaml

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)