We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b04281e commit ad75a61Copy full SHA for ad75a61
.github/workflows/publish-npm.yml
@@ -3,8 +3,6 @@ on:
3
push:
4
branches:
5
- master
6
- tags:
7
- - v0.*
8
9
jobs:
10
publish:
@@ -20,13 +18,13 @@ jobs:
20
18
- run: yarn build
21
19
22
- name: Beta
23
- if: ${{ contains(github.ref, '-beta') }}
+ if: ${{ startsWith(github.ref, 'refs/tags/') && endsWith(ithub.ref, '-beta') }}
24
run: yarn publish --tag beta
25
env:
26
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
27
28
- name: Current version
29
- if: ${{ !contains(github.ref, '-beta') }}
+ if: ${{ startsWith(github.ref, 'refs/tags/') && !endsWith(ithub.ref, '-beta') }}
30
run: yarn publish
31
32
0 commit comments