Skip to content

Commit ad75a61

Browse files
authored
Update publish-npm.yml
1 parent b04281e commit ad75a61

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/publish-npm.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ on:
33
push:
44
branches:
55
- master
6-
tags:
7-
- v0.*
86

97
jobs:
108
publish:
@@ -20,13 +18,13 @@ jobs:
2018
- run: yarn build
2119

2220
- name: Beta
23-
if: ${{ contains(github.ref, '-beta') }}
21+
if: ${{ startsWith(github.ref, 'refs/tags/') && endsWith(ithub.ref, '-beta') }}
2422
run: yarn publish --tag beta
2523
env:
2624
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2725

2826
- name: Current version
29-
if: ${{ !contains(github.ref, '-beta') }}
27+
if: ${{ startsWith(github.ref, 'refs/tags/') && !endsWith(ithub.ref, '-beta') }}
3028
run: yarn publish
3129
env:
3230
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)