Skip to content

Commit 8820f6b

Browse files
authored
Merge pull request #278 from Staffbase/Edits-to-enable-trusted-publishing
Edits to workflow file to setup trusted publishing
2 parents 3ce6cb7 + aef8cd7 commit 8820f6b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ on:
99
- "**"
1010

1111
permissions:
12-
contents: write # we need to read secrets
12+
id-token: write
13+
contents: read # we need to read secrets
1314

1415
jobs:
1516
test:
@@ -21,7 +22,7 @@ jobs:
2122
- name: Use Node.js
2223
uses: actions/setup-node@v4
2324
with:
24-
node-version: 20
25+
node-version: 24
2526

2627
- name: Install dependencies
2728
run: yarn install
@@ -77,7 +78,7 @@ jobs:
7778
- uses: actions/setup-node@v4
7879
if: steps.semantic.outputs.new_release_published == 'true'
7980
with:
80-
node-version: 20.x
81+
node-version: 24.x
8182
cache: 'npm'
8283
registry-url: 'https://registry.npmjs.org'
8384
scope: '@staffbase'
@@ -86,5 +87,3 @@ jobs:
8687
if: steps.semantic.outputs.new_release_published == 'true' && github.ref != 'refs/heads/alpha'
8788
run: |
8889
npm publish --registry=https://registry.npmjs.org --access public
89-
env:
90-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)