File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 11name : Publish npm
22on :
33 push :
4- branches :
5- - master
4+ tags :
5+ - v0*
66
77jobs :
88 publish :
9+ if : { github.ref == 'refs/heads/master' }
910 runs-on : ubuntu-latest
1011 steps :
1112 - uses : actions/checkout@v3
@@ -18,13 +19,13 @@ jobs:
1819 - run : yarn build
1920
2021 - name : Beta
21- if : ${{ startsWith(github.ref, 'refs/tags/') && endsWith(ithub .ref, '-beta') }}
22+ if : ${{ endsWith(github .ref, '-beta') }}
2223 run : yarn publish --tag beta
2324 env :
2425 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
2526
2627 - name : Current version
27- if : ${{ startsWith(github.ref, 'refs/tags/') && !endsWith(ithub .ref, '-beta') }}
28+ if : ${{ !endsWith(github .ref, '-beta') }}
2829 run : yarn publish
2930 env :
3031 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments