Skip to content

Commit b754590

Browse files
committed
ci: use identical release workflow from deps
1 parent 2787e13 commit b754590

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

.github/workflows/publish-npm.yml

+12-11
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ jobs:
99
contents: read
1010
id-token: write
1111
steps:
12-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
13-
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
14-
with:
15-
node-version: ${{ matrix.node }}
16-
registry-url: 'https://registry.npmjs.org'
17-
cache: 'npm'
18-
- run: npm ci
19-
- run: npm run build
20-
- run: npm publish --provenance --access public
21-
env:
22-
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
12+
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4
13+
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4
14+
with:
15+
node-version: 20
16+
registry-url: 'https://registry.npmjs.org'
17+
cache: npm
18+
- run: npm install -g npm
19+
- run: npm ci
20+
- run: npm run build
21+
- run: npm publish --provenance --access public
22+
env:
23+
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

0 commit comments

Comments
 (0)