Skip to content

Commit b72c673

Browse files
committed
updated github actions
1 parent dcae8c4 commit b72c673

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525
- 22.x
2626

2727
steps:
28-
- uses: actions/checkout@v2
28+
- uses: actions/checkout@v4
2929
- name: Use Node.js ${{ matrix.node-version }}
30-
uses: actions/setup-node@v1
30+
uses: actions/setup-node@v4
3131
with:
3232
node-version: ${{ matrix.node-version }}
3333
- run: npm ci
@@ -51,15 +51,15 @@ jobs:
5151
- uses: actions/download-artifact@v4
5252
with:
5353
name: build
54-
- uses: actions/setup-node@v1
54+
- uses: actions/setup-node@v4
5555
with:
5656
node-version: 20.x
57-
- uses: rlespinasse/github-slug-action@v3.x
57+
- uses: rlespinasse/github-slug-action@v4.x
5858
- name: Append commit hash to package version
5959
run: 'sed -i -E "s/(\"version\": *\"[^\"]+)/\1-${GITHUB_SHA_SHORT}/" package.json'
6060
- name: Disable pre- and post-publish actions
6161
run: 'sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
62-
- uses: JS-DevTools/npm-publish@v1
62+
- uses: JS-DevTools/npm-publish@v2
6363
with:
6464
token: ${{ secrets.NPM_TOKEN }}
6565
tag: ${{ env.GITHUB_REF_SLUG }}
@@ -72,12 +72,12 @@ jobs:
7272
- uses: actions/download-artifact@v4
7373
with:
7474
name: build
75-
- uses: actions/setup-node@v1
75+
- uses: actions/setup-node@v2
7676
with:
7777
node-version: 20.x
7878
- name: Disable pre- and post-publish actions
7979
run: 'sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
80-
- uses: JS-DevTools/npm-publish@v1
80+
- uses: JS-DevTools/npm-publish@v2
8181
with:
8282
token: ${{ secrets.NPM_TOKEN }}
8383
tag: latest

0 commit comments

Comments
 (0)