Skip to content

Commit 0f68420

Browse files
authored
build: use trusted publishing
1 parent 670981f commit 0f68420

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,10 @@ jobs:
5353
else
5454
echo "tag=latest" >> $GITHUB_OUTPUT
5555
fi
56-
- run: npm publish --provenance --access public --tag ${{ steps.npm_tag.outputs.tag }}
57-
env:
58-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
56+
57+
- name: Update npm
58+
run: npm install -g npm@latest
59+
- run: npm publish
5960

6061
publish-gpr:
6162
needs: build

0 commit comments

Comments
 (0)