File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -16,20 +16,20 @@ jobs:
16
16
run : git config --global user.name ${{ github.actor }}
17
17
- name : Set git user email
18
18
run : git config --global user.email "github-action-${{ github.actor }}.users.noreply.github.com"
19
- - name : Set package version to tag name
20
- run : npm version ${{ github.event.release.tag_name }}
21
19
- name : Install dependencies and build
22
20
run : npm ci
23
21
- name : Publish package to npm
24
22
run : |
25
23
if
26
24
[[ ${{ github.event.release.tag_name }} == *'alpha'* ]];
27
25
then
28
- npm publish --tag alpha
26
+ npm version ${{ github.event.release.tag_name }};
27
+ npm publish --tag alpha;
29
28
elif
30
29
[[ ${{ github.event.release.tag_name }} == *'beta'* ]];
31
30
then
32
- npm publish --tag beta
31
+ npm version ${{ github.event.release.tag_name }};
32
+ npm publish --tag beta;
33
33
else
34
34
npm publish
35
35
fi
You can’t perform that action at this time.
0 commit comments