Skip to content

Commit 912d462

Browse files
committed
fix: gh actions permissions
1 parent 7bb3e29 commit 912d462

2 files changed

Lines changed: 6 additions & 9 deletions

File tree

.github/workflows/deploy-npm.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
jobs:
99
test:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
1113
timeout-minutes: 10
1214
strategy:
1315
matrix:
@@ -30,6 +32,8 @@ jobs:
3032

3133
publish:
3234
needs: test
35+
permissions:
36+
contents: read
3337
runs-on: ubuntu-latest
3438
steps:
3539
- name: Checkout
@@ -42,15 +46,6 @@ jobs:
4246
registry-url: 'https://registry.npmjs.org'
4347
cache: 'npm'
4448

45-
- name: Install dependencies
46-
run: npm ci
47-
48-
- name: Build version
49-
run: npm run build:version
50-
51-
- name: Build
52-
run: npm run build
53-
5449
- name: Publish to npm
5550
run: npm publish --access public
5651
env:

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
jobs:
1111
test:
1212
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
1315
timeout-minutes: 10
1416
strategy:
1517
matrix:

0 commit comments

Comments
 (0)