Skip to content

Commit bc5759a

Browse files
authored
Update ci.yml
1 parent 6aea3a0 commit bc5759a

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
matrix:
2020
node-version: [20, 22]
2121
steps:
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@v5
2323
- uses: actions/setup-node@v4
2424
with:
2525
node-version: ${{ matrix.node-version }}
@@ -32,18 +32,21 @@ jobs:
3232
publish:
3333
name: Publish to npm
3434
needs: test
35-
if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch'
35+
if: startsWith(github.ref, 'refs/tags/v')
3636
runs-on: ubuntu-latest
37+
concurrency:
38+
group: npm-publish
39+
cancel-in-progress: false
3740
permissions:
3841
contents: read
3942
id-token: write
4043
steps:
41-
- uses: actions/checkout@v4
44+
- uses: actions/checkout@v5
4245
- uses: actions/setup-node@v4
4346
with:
4447
node-version: 20
4548
cache: npm
46-
registry-url: https://registry.npmjs.org
49+
registry-url: 'https://registry.npmjs.org'
4750
- run: npm ci
4851
- run: npm publish --provenance --access public
4952
env:

0 commit comments

Comments
 (0)