Skip to content

Commit b61e9e8

Browse files
authored
🚚 Update publish workflow (#555)
1 parent 65b07d2 commit b61e9e8

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,20 @@ jobs:
88
publish:
99
environment: npm
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
id-token: write
1114
steps:
1215
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
1316
- name: Use Node.js 18.12.0
1417
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
1518
with:
1619
node-version: '18.12.0'
1720
cache: 'yarn'
21+
registry-url: 'https://registry.npmjs.org'
1822
- run: yarn install --frozen-lockfile
1923
- run: yarn test
2024
- run: yarn build
2125
- run: yarn build:node
22-
- uses: JS-DevTools/npm-publish@19c28f1ef146469e409470805ea4279d47c3d35c # v3.1.1
23-
with:
24-
token: ${{ secrets.NPM_TOKEN }}
25-
strategy: all
26+
- name: Publish to npm
27+
run: npm publish --provenance

0 commit comments

Comments
 (0)