1515 - name : Use Node.js
1616 uses : actions/setup-node@v1
1717 with :
18- node-version : " 14 .x"
18+ node-version : " 16 .x"
1919
2020 - name : Cache Node.js modules
2121 uses : actions/cache@v2
3333 mkdir dist
3434 echo "$CHROME_PEM" > ./dist/scriptcat.pem
3535 chmod 600 ./dist/scriptcat.pem
36- npm ci
36+ npm ci
3737 npm test
3838 npm run pack
3939
5757 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5858 with :
5959 upload_url : ${{ steps.create_release.outputs.upload_url }}
60- asset_path : ./dist/scriptcat-${{ github.ref }}-chrome.zip
61- asset_name : scriptcat-${{ github.ref }}-chrome.zip
60+ asset_path : ./dist/scriptcat-${{ github.ref_name }}-chrome.zip
61+ asset_name : scriptcat-${{ github.ref_name }}-chrome.zip
6262 asset_content_type : application/zip
6363
6464 - name : Upload FireFox Release Asset zip
6868 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6969 with :
7070 upload_url : ${{ steps.create_release.outputs.upload_url }}
71- asset_path : ./dist/scriptcat-${{ github.ref }}-firefox.zip
72- asset_name : scriptcat-${{ github.ref }}-firefox.zip
71+ asset_path : ./dist/scriptcat-${{ github.ref_name }}-firefox.zip
72+ asset_name : scriptcat-${{ github.ref_name }}-firefox.zip
7373 asset_content_type : application/zip
7474
7575 - name : Upload Crx Release Asset zip
7979 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8080 with :
8181 upload_url : ${{ steps.create_release.outputs.upload_url }}
82- asset_path : ./dist/scriptcat-${{ github.ref }}-chrome.crx
83- asset_name : scriptcat-${{ github.ref }}-chrome.crx
82+ asset_path : ./dist/scriptcat-${{ github.ref_name }}-chrome.crx
83+ asset_name : scriptcat-${{ github.ref_name }}-chrome.crx
8484 asset_content_type : application/zip
0 commit comments