File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 11# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
22# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
33
4- name : Create New Release
4+ name : Create New Pre Release
55
66on :
77 release :
8- types : [preleased ]
8+ types : [created ]
99
1010jobs :
1111 build :
12+ if : " github.event.release.prerelease"
1213 runs-on : ubuntu-latest
1314 steps :
1415 - uses : actions/checkout@v2
2021 - run : npm test
2122
2223 publish-npm :
24+ if : " github.event.release.prerelease"
2325 needs : build
2426 runs-on : ubuntu-latest
2527 steps :
3739 NODE_AUTH_TOKEN : ${{secrets.npm_token}}
3840
3941 publish-gpr :
42+ if : " github.event.release.prerelease"
4043 needs : build
4144 runs-on : ubuntu-latest
4245 steps :
You can’t perform that action at this time.
0 commit comments