Skip to content

Commit bb7d69b

Browse files
authored
SWI-9214 Update Deploy Workflow (#75)
1 parent a507452 commit bb7d69b

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎.github/workflows/deploy.yml‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ jobs:
77
deploy:
88
name: Deploy
99
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
id-token: write
1013
if: ${{ !github.event.release.prerelease && github.event.release.target_commitish == 'main' }}
1114
steps:
1215
- name: Checkout
@@ -18,7 +21,7 @@ jobs:
1821
- name: Setup Node
1922
uses: actions/setup-node@v6
2023
with:
21-
node-version: "12.x"
24+
node-version: 16
2225
registry-url: "https://registry.npmjs.org"
2326

2427
- name: Build and test npm package
@@ -38,6 +41,4 @@ jobs:
3841
- name: Publish npm package
3942
run: |
4043
npm version $RELEASE_VERSION --no-git-tag-version
41-
npm publish --access public
42-
env:
43-
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
44+
npm publish --provenance --access public

0 commit comments

Comments
 (0)