Skip to content

Commit d113cc6

Browse files
committed
publish without npm token
1 parent 805c36b commit d113cc6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,22 @@ jobs:
99
release:
1010
name: Release
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
issues: write
15+
pull-requests: write
16+
id-token: write
1217
steps:
1318
- uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
1421
- uses: actions/setup-node@v4
1522
with:
16-
node-version: latest
23+
node-version: 'lts/*'
1724
cache: 'yarn'
1825
- run: yarn install --immutable
1926
- run: yarn build
2027
- run: yarn test
2128
- run: npx semantic-release --branches main
2229
env:
2330
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)