Skip to content

Commit ad91f50

Browse files
Merge branch 'main' into fix/lens-abort-auto-recovery
2 parents af5abb4 + ad5fec0 commit ad91f50

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ jobs:
1010
publish:
1111
runs-on: ubuntu-latest
1212
timeout-minutes: 10
13+
permissions:
14+
contents: read
15+
id-token: write
1316
steps:
1417
- name: Checkout code
1518
uses: actions/checkout@v4
@@ -21,6 +24,9 @@ jobs:
2124
cache: npm
2225
registry-url: "https://registry.npmjs.org/"
2326

27+
- name: Upgrade npm for Trusted Publishing
28+
run: npm install -g npm@latest
29+
2430
- name: Determine pre-release tag
2531
run: |
2632
TAG_NAME=${GITHUB_REF_NAME}
@@ -50,6 +56,4 @@ jobs:
5056
run: npm run build
5157

5258
- name: Publish
53-
run: npm publish --access public --tag ${{ env.tag }}
54-
env:
55-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
59+
run: npm publish --provenance --access public --tag ${{ env.tag }}

0 commit comments

Comments
 (0)