File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 55 build-and-test :
66 runs-on : ubuntu-latest
77 steps :
8- - uses : actions/checkout@v2
9- - uses : actions/setup-node@v3
8+ - uses : actions/checkout@main
9+ - uses : actions/setup-node@main
1010 with :
1111 node-version : 16.9.1
1212 - run : npm ci
1313 - run : npm run build
1414 - run : npm run format:check
1515 - run : npm run lint:check
16- - uses : actions/upload-artifact@v2
16+ - uses : actions/upload-artifact@main
1717 with :
1818 name : build
1919 path : index.js
@@ -24,16 +24,16 @@ jobs:
2424 runs-on : ubuntu-latest
2525 needs : build-and-test
2626 steps :
27- - uses : actions/checkout@v1
28- - uses : actions/setup-node@v3
27+ - uses : actions/checkout@main
28+ - uses : actions/setup-node@main
2929 with :
3030 node-version : 16.9.1
3131 - run : echo ::set-output name=CURRENT_VERSION::$(node -p "require(\"./package.json\").version")
3232 id : current-version
3333 - if : github.ref == 'refs/heads/master'
3434 run : echo ::set-output name=VERSION_INFO::$(npm view $(node -p "require(\"./package.json\").name")@=${{ steps.current-version.outputs.CURRENT_VERSION }})
3535 id : version-was-changed
36- - uses : actions/download-artifact@v2
36+ - uses : actions/download-artifact@main
3737 # need to publish if the branch isn't master, or it is master and the version in package.json hasn't been published yet
3838 if : github.ref != 'refs/heads/master' || steps.version-was-changed.outputs.VERSION_INFO == ''
3939 with :
You can’t perform that action at this time.
0 commit comments