Skip to content

Commit db58e54

Browse files
chore: Use trusted publishers in build-release (#2)
1 parent 291e554 commit db58e54

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/build-release.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,14 @@ jobs:
3939
node-version: '20.x'
4040
registry-url: 'https://registry.npmjs.org'
4141

42+
- name: Update NPM
43+
run: npm install -g npm@latest
44+
4245
- name: Install dependencies
4346
run: npm install
4447

4548
- name: Publish package
4649
run: npm publish --provenance --access public
47-
env:
48-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4950

5051
publish-github:
5152
runs-on: ubuntu-latest
@@ -71,4 +72,4 @@ jobs:
7172
sed -i 's+"name": ".*+"name": "@${{ github.repository }}",+gI' ./package.json
7273
npm publish --provenance --access public
7374
env:
74-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
75+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)