Skip to content

Commit 6215512

Browse files
feat: add contents permission to GitHub Actions workflow for npm publishing
1 parent 6923b26 commit 6215512

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
permissions:
1212
id-token: write
13+
contents: read
1314

1415
steps:
1516
- uses: actions/checkout@v4
@@ -18,6 +19,11 @@ jobs:
1819
with:
1920
bun-version: latest
2021

22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: 'lts/*'
25+
registry-url: 'https://registry.npmjs.org'
26+
2127
- name: Install dependencies
2228
run: bun install
2329

0 commit comments

Comments
 (0)