Skip to content

Commit a2c7df4

Browse files
committed
use trusted publisher
1 parent e189b56 commit a2c7df4

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ jobs:
9090
needs: test
9191
runs-on: ubuntu-latest
9292
if: startsWith(github.ref, 'refs/tags/')
93+
environment: npm
9394
steps:
9495
- uses: actions/checkout@v5
9596
- uses: actions/setup-node@v5
@@ -115,10 +116,8 @@ jobs:
115116
for dir in npm/*; do
116117
if [ -d "$dir" ]; then
117118
echo "Publishing $dir..."
118-
(cd "$dir" && npm publish --access public)
119+
(cd "$dir" && npm publish --provenance --access public)
119120
fi
120121
done
121122
echo "Publishing root package..."
122-
npm publish --access public
123-
env:
124-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
123+
npm publish --provenance --access public

0 commit comments

Comments
 (0)