Skip to content

Commit b6a7eaf

Browse files
committed
MET-4394 Use trusted publishing for the npm package
1 parent 89d716e commit b6a7eaf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
workflow_dispatch:
66

7+
permissions:
8+
id-token: write
9+
710
jobs:
811
ci:
912
name: ci
@@ -34,8 +37,5 @@ jobs:
3437
- if: startsWith(github.ref, 'refs/tags/')
3538
name: set package.json version by tag
3639
run: npm version --allow-same-version --no-commit-hooks --no-git-tag-version from-git
37-
- if: startsWith(github.ref, 'refs/tags/')
38-
uses: JS-DevTools/npm-publish@v3
39-
with:
40-
token: ${{ secrets.NPM_API_KEY }}
41-
package: sources/package.json
40+
- if: startsWith(github.ref, 'refs/tags/')
41+
run: npm publish

0 commit comments

Comments
 (0)