Skip to content

Commit 8522261

Browse files
authored
Merge pull request #72 from Staffbase/Updates-to-enable-trusted-publishing
edits to enable trusted publishing
2 parents b98c862 + 2783c2e commit 8522261

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/publish-npm.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,27 @@ name: Publish to NPM Registry
22
on:
33
release:
44
types: [created]
5+
permissions:
6+
id-token: write # Required for OIDC
7+
contents: read
58
jobs:
69
build:
710
runs-on: ubuntu-latest
811
steps:
9-
1012
- name: Checkout
1113
uses: actions/checkout@v4
1214

1315
- name: Setup Node
1416
uses: actions/setup-node@v4
1517
with:
16-
registry-url: 'https://registry.npmjs.org'
17-
18+
node-version: "24"
19+
registry-url: "https://registry.npmjs.org"
20+
1821
- name: Install dependencies
1922
run: npm install
2023

2124
- name: Create build
2225
run: npm run build
2326

24-
- name: Publish package on NPM 📦
27+
- name: Publish package on NPM 📦
2528
run: npm publish
26-
env:
27-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)