Skip to content

Commit 70d0a30

Browse files
committed
Release script best practices
1 parent a84ba63 commit 70d0a30

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ permissions: read-all
66
jobs:
77
build:
88
runs-on: ubuntu-latest
9+
environment: GitHub Publish
910
permissions:
1011
contents: read
1112
id-token: write
1213
steps:
1314
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 4.1.7
1415
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # 4.0.3
1516
with:
16-
node-version: "20"
17+
node-version: "22"
1718
registry-url: "https://registry.npmjs.org"
18-
- run: npm install
19+
- run: npm ci
1920
- run: npm test
2021
- if: ${{ github.event.release.tag_name != '' && env.NPM_PUBLISH_TAG != '' }}
2122
run: npm publish --provenance --access=public --tag=${{ env.NPM_PUBLISH_TAG }}
2223
env:
23-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2424
NPM_PUBLISH_TAG: ${{ contains(github.event.release.tag_name, '-beta.') && 'beta' || 'latest' }}

0 commit comments

Comments
 (0)