File tree Expand file tree Collapse file tree 1 file changed +13
-28
lines changed Expand file tree Collapse file tree 1 file changed +13
-28
lines changed Original file line number Diff line number Diff line change 1010jobs :
1111 build :
1212 runs-on : ubuntu-latest
13+ permissions :
14+ contents : read
15+ packages : write
1316 steps :
1417 - uses : actions/checkout@v2
1518 - uses : actions/setup-node@v2
@@ -25,34 +28,16 @@ jobs:
2528 uses : coverallsapp/github-action@v1.1.2
2629 with :
2730 github-token : ${{ github.token }}
28-
29- publish-npm :
30- needs : build
31- runs-on : ubuntu-latest
32- steps :
33- - uses : actions/checkout@v2
34- - uses : actions/setup-node@v2
35- with :
36- node-version : 14
37- registry-url : https://registry.npmjs.org/
38- - run : npm ci
39- - run : npm publish
31+ - name : Upload
32+ uses : actions/upload-release-asset@v1.0.1
4033 env :
41- NODE_AUTH_TOKEN : ${{secrets.npm_token}}
42-
43- publish-gpr :
44- needs : build
45- runs-on : ubuntu-latest
46- permissions :
47- contents : read
48- packages : write
49- steps :
50- - uses : actions/checkout@v2
51- - uses : actions/setup-node@v2
34+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5235 with :
53- node-version : 14
54- registry-url : https://npm.pkg.github.com/
55- - run : npm ci
56- - run : npm publish
36+ upload_url : ${{ github.event.release.upload_url }}
37+ asset_path : ./dist/release.zip
38+ asset_name : release-${{ github.event.release.tag_name }}.zip
39+ asset_content_type : application/zip
40+ - name : NpmPublish
41+ run : npm publish
5742 env :
58- NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN }}
43+ NODE_AUTH_TOKEN : ${{secrets.npm_token }}
You can’t perform that action at this time.
0 commit comments