File tree 1 file changed +1
-52
lines changed 1 file changed +1
-52
lines changed Original file line number Diff line number Diff line change 27
27
- run : npm ci
28
28
- run : npm test
29
29
30
- release :
31
- runs-on : ubuntu-latest
32
- steps :
33
- - uses : actions/checkout@v3
34
- - uses : actions/setup-node@v3
35
- with :
36
- node-version : 16
37
- registry-url : https://registry.npmjs.org/
38
- - run : npm ci
39
-
40
- - name : Extract package.json info
41
- id : extract_info
42
- run : |
43
- echo "tag_name=$(node -p 'require(\"./package.json\").version')" >> $GITHUB_ENV
44
- echo "release_name=$(node -p 'require(\"./package.json\").name')" >> $GITHUB_ENV
45
- echo "body=$(node -p 'require(\"./package.json\").description')" >> $GITHUB_ENV
46
- continue-on-error : true
47
-
48
- - name : Create Release
49
- id : create_release
50
- uses : actions/create-release@v1
51
- with :
52
- tag_name : ${{ env.tag_name }}
53
- release_name : ${{ env.release_name }} ${{ env.tag_name }}
54
- body : ${{ env.body }}
55
- draft : false
56
- prerelease : false
57
- env :
58
- GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
59
-
60
30
publish-npm :
61
- needs : [release, test]
31
+ needs : [test]
62
32
runs-on : ubuntu-latest
63
33
steps :
64
34
- uses : actions/checkout@v3
73
43
74
44
- name : Create Tarball
75
45
run : npm pack
76
-
77
- create-github-package :
78
- needs : publish-npm
79
- runs-on : ubuntu-latest
80
- steps :
81
- - uses : actions/checkout@v3
82
- - uses : actions/setup-node@v3
83
- with :
84
- node-version : 16
85
-
86
- - run : npm ci
87
- - run : npm pack
88
-
89
- - name : Create GitHub Package
90
- uses : actions/create-release@v1
91
- with :
92
- files : ./*.tgz
93
- release_name : ${{ env.release_name }} ${{ env.tag_name }}
94
- tag_name : ${{ env.tag_name }}
95
- env :
96
- GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
You can’t perform that action at this time.
0 commit comments