@@ -11,16 +11,16 @@ jobs:
1111 build :
1212 runs-on : ubuntu-latest
1313 steps :
14- - uses : actions/checkout@v3
15- - uses : actions/setup-node@v3
14+ - uses : actions/checkout@v4
15+ - uses : actions/setup-node@v4
1616 with :
1717 node-version : 18
1818
1919 - name : Get yarn cache directory path
2020 id : yarn-cache-dir-path
2121 run : echo "::set-output name=dir::$(yarn cache dir)"
2222
23- - uses : actions/cache@v1
23+ - uses : actions/cache@v4
2424 id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
2525 with :
2626 path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
@@ -43,22 +43,27 @@ jobs:
4343 mv zxing-library-*.tgz package.tgz
4444
4545 - name : Upload build artifacts
46- uses : actions/upload-artifact@v1
46+ uses : actions/upload-artifact@v4
4747 with :
4848 name : pack-artifact
4949 path : ./package.tgz
50+ # If true, an artifact with a matching name will be deleted before a new one is uploaded.
51+ # If false, the action will fail if an artifact for the given name already exists.
52+ # Does not fail if the artifact does not exist.
53+ # Optional. Default is 'false'
54+ overwrite : true
5055
5156 publish-npm :
5257 needs : build
5358 runs-on : ubuntu-latest
5459 steps :
5560
5661 - name : Download build artifacts
57- uses : actions/download-artifact@v1
62+ uses : actions/download-artifact@v4
5863 with :
5964 name : pack-artifact
6065
61- - uses : actions/setup-node@v3
66+ - uses : actions/setup-node@v4
6267 with :
6368 node-version : 18
6469 registry-url : https://registry.npmjs.org/
0 commit comments