Skip to content

Commit 5dfcaf3

Browse files
authored
Update ci.yml node 20
1 parent 6c59f2a commit 5dfcaf3

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
@@ -15,8 +15,8 @@ jobs:
1515
strategy:
1616
matrix:
1717
node-version:
18-
- 16.x
1918
- 18.x
19+
- 20.x
2020
steps:
2121
- uses: actions/checkout@v2
2222
- name: Use Node.js ${{ matrix.node-version }}
@@ -27,8 +27,8 @@ jobs:
2727
- run: npm test
2828
- run: npm run build
2929
- name: Save build
30-
if: matrix.node-version == '16.x'
31-
uses: actions/upload-artifact@v2
30+
if: matrix.node-version == '18.x'
31+
uses: actions/upload-artifact@v4
3232
with:
3333
name: build
3434
path: |
@@ -40,12 +40,12 @@ jobs:
4040
needs: test
4141
runs-on: ubuntu-latest
4242
steps:
43-
- uses: actions/download-artifact@v2
43+
- uses: actions/download-artifact@v4
4444
with:
4545
name: build
4646
- uses: actions/setup-node@v1
4747
with:
48-
node-version: 16.x
48+
node-version: 18.x
4949
- uses: rlespinasse/[email protected]
5050
- name: Append commit hash to package version
5151
run: 'sed -i -E "s/(\"version\": *\"[^\"]+)/\1-${GITHUB_SHA_SHORT}/" package.json'
@@ -60,12 +60,12 @@ jobs:
6060
runs-on: ubuntu-latest
6161
if: github.ref == 'refs/heads/main'
6262
steps:
63-
- uses: actions/download-artifact@v2
63+
- uses: actions/download-artifact@v4
6464
with:
6565
name: build
6666
- uses: actions/setup-node@v1
6767
with:
68-
node-version: 16.x
68+
node-version: 18.x
6969
- name: Disable pre- and post-publish actions
7070
run: 'sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
7171
- uses: JS-DevTools/npm-publish@v1

0 commit comments

Comments
 (0)