File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -22,25 +22,25 @@ jobs:
22
22
23
23
# checkout the repo
24
24
- uses : actions/checkout@v2
25
+ - uses : actions/setup-node@v1
26
+ - run : npm ci
25
27
26
28
# extract tag name
27
29
- id : branch_name
30
+ name : Get branch name
28
31
run : |
29
32
echo ::set-output name=SOURCE_NAME::${GITHUB_REF#refs/*/}
30
33
echo ::set-output name=SOURCE_BRANCH::${GITHUB_REF#refs/heads/}
31
34
echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
32
35
33
- # npm install
34
- - uses : actions/setup-node@v1
35
- - run : npm ci
36
-
37
36
# update version
38
37
- id : update_version
38
+ name : Update version
39
39
run : |
40
40
echo $SOURCE_NAME
41
41
echo $SOURCE_BRANCH
42
42
echo $SOURCE_TAG
43
- npm version $SOURCE_TAG
43
+ npm version $SOURCE_TAG --no-commit-hooks
44
44
env :
45
45
SOURCE_NAME : ${{ steps.branch_name.outputs.SOURCE_NAME }}
46
46
SOURCE_BRANCH : ${{ steps.branch_name.outputs.SOURCE_BRANCH }}
You can’t perform that action at this time.
0 commit comments