File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 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 }}
2828 - run : npm test
2929 - run : npm run build --if-present
3030 - name : Save build
31- if : matrix.node-version == '16 .x'
32- uses : actions/upload-artifact@v2
31+ if : matrix.node-version == '18 .x'
32+ uses : actions/upload-artifact@v4
3333 with :
3434 name : build
3535 path : |
@@ -40,12 +40,12 @@ jobs:
4040 needs : build
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'
@@ -61,12 +61,12 @@ jobs:
6161 runs-on : ubuntu-latest
6262 if : github.ref == 'refs/heads/main'
6363 steps :
64- - uses : actions/download-artifact@v2
64+ - uses : actions/download-artifact@v4
6565 with :
6666 name : build
6767 - uses : actions/setup-node@v1
6868 with :
69- node-version : 16 .x
69+ node-version : 18 .x
7070 - name : Disable pre- and post-publish actions
7171 run : ' sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
7272 - uses : JS-DevTools/npm-publish@v1
You can’t perform that action at this time.
0 commit comments