File tree 2 files changed +13
-17
lines changed 2 files changed +13
-17
lines changed Original file line number Diff line number Diff line change 1
- name : Release
1
+ name : release
2
2
3
3
on :
4
4
push :
@@ -12,10 +12,10 @@ jobs:
12
12
steps :
13
13
- uses : actions/checkout@v2
14
14
- uses : actions/setup-node@v2
15
- - run : |
16
- npm install
17
- npm run build
18
- tar cvzf dist.tar.gz -C dist/ .
15
+ - run : npm install
16
+ - run : npm run build
17
+ - run : tar cvzf dist.tar.gz -C dist/ .
18
+ - run : echo "GIT_TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
19
19
- uses : actions/create-release@v1
20
20
id : create_release
21
21
env :
25
25
- uses : actions/upload-release-asset@v1
26
26
env :
27
27
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28
- GIT_TAG_NAME : ${GITHUB_REF#refs/*/}
29
28
with :
30
29
upload_url : ${{ steps.create_release.outputs.upload_url }}
31
30
asset_path : ./dist.tar.gz
32
- asset_name : xsnippet-web-${GIT_TAG_NAME}.tar.gz
31
+ asset_name : xsnippet-web-${{ env. GIT_TAG_NAME } }.tar.gz
33
32
asset_content_type : application/gzip
Original file line number Diff line number Diff line change 1
- name : Tests
1
+ name : test
2
2
3
3
on :
4
4
- push
@@ -11,19 +11,17 @@ jobs:
11
11
steps :
12
12
- uses : actions/checkout@v2
13
13
- uses : actions/setup-node@v2
14
- - run : |
15
- npm install
16
- npm run lint
14
+ - run : npm install
15
+ - run : npm run lint
17
16
18
17
test :
19
18
runs-on : ubuntu-latest
20
19
21
20
steps :
22
21
- uses : actions/checkout@v2
23
22
- uses : actions/setup-node@v2
24
- - run : |
25
- npm install
26
- npm run test
23
+ - run : npm install
24
+ - run : npm run test
27
25
28
26
build :
29
27
needs : [lint, test]
32
30
steps :
33
31
- uses : actions/checkout@v2
34
32
- uses : actions/setup-node@v2
35
- - run : |
36
- npm install
37
- npm run build
33
+ - run : npm install
34
+ - run : npm run build
You can’t perform that action at this time.
0 commit comments