Skip to content

Commit 0eb0f3c

Browse files
ci: publish via trusted publishing
1 parent 25aa56c commit 0eb0f3c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
version: ${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }}
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: google-github-actions/release-please-action@v4
20+
- uses: googleapis/release-please-action@v4
2121
id: release
2222

2323
publish:
@@ -39,7 +39,7 @@ jobs:
3939
registry-url: "https://registry.npmjs.org"
4040
cache: "yarn"
4141
- run: yarn install --immutable
42-
- env:
43-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
44-
# yarn doesn't have an equivalent --provenance
45-
run: npm publish --provenance --access public
42+
# https://docs.npmjs.com/trusted-publishers#supported-cicd-providers
43+
# Ensure npm 11.5.1 or later is installed
44+
- run: npm install -g npm@latest
45+
- run: npm publish --provenance --access public

0 commit comments

Comments
 (0)