Skip to content

Commit e7c2b8c

Browse files
authored
Update ci.yml
1 parent b0e1d9b commit e7c2b8c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/ci.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020
strategy:
2121
matrix:
2222
node-version:
23-
- 16.x
2423
- 18.x
24+
- 20.x
2525

2626
steps:
2727
- uses: actions/checkout@v2
@@ -34,8 +34,8 @@ jobs:
3434
- run: npm test
3535
- run: npm run build --if-present
3636
- name: Save build
37-
if: matrix.node-version == '16.x'
38-
uses: actions/upload-artifact@v2
37+
if: matrix.node-version == '18.x'
38+
uses: actions/upload-artifact@v4
3939
with:
4040
name: build
4141
path: |
@@ -46,12 +46,12 @@ jobs:
4646
needs: build
4747
runs-on: ubuntu-latest
4848
steps:
49-
- uses: actions/download-artifact@v2
49+
- uses: actions/download-artifact@v4
5050
with:
5151
name: build
5252
- uses: actions/setup-node@v1
5353
with:
54-
node-version: 16.x
54+
node-version: 18.x
5555
- uses: rlespinasse/[email protected]
5656
- name: Append commit hash to package version
5757
run: 'sed -i -E "s/(\"version\": *\"[^\"]+)/\1-${GITHUB_SHA_SHORT}/" package.json'
@@ -67,12 +67,12 @@ jobs:
6767
runs-on: ubuntu-latest
6868
if: github.ref == 'refs/heads/main'
6969
steps:
70-
- uses: actions/download-artifact@v2
70+
- uses: actions/download-artifact@v4
7171
with:
7272
name: build
7373
- uses: actions/setup-node@v1
7474
with:
75-
node-version: 16.x
75+
node-version: 18.x
7676
- name: Disable pre- and post-publish actions
7777
run: 'sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
7878
- uses: JS-DevTools/npm-publish@v1

0 commit comments

Comments
 (0)