File tree Expand file tree Collapse file tree 2 files changed +43
-17
lines changed Expand file tree Collapse file tree 2 files changed +43
-17
lines changed Original file line number Diff line number Diff line change
1
+ name : Create Release for v1
2
+
3
+ on :
4
+ workflow_dispatch :
5
+
6
+ jobs :
7
+ bump-version :
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - name : Checkout Code
11
+ uses : actions/checkout@v3
12
+
13
+ - name : Automated Version Bump
14
+
15
+ env :
16
+ GITHUB_USER : ${{ secrets.CI_NAME }}
17
+ GITHUB_EMAIL : ${{ secrets.CI_EMAIL }}
18
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
19
+ with :
20
+ tag-prefix : ' v'
21
+
22
+ - name : Set up Node.js
23
+ uses : actions/setup-node@v3
24
+ with :
25
+ node-version : 16
26
+ registry-url : https://registry.npmjs.org/
27
+
28
+ # - name: Publish NPM
29
+ # run: |
30
+ # npm ci
31
+ # npm run build
32
+ # npm publish --tag v1-latest
33
+ # env:
34
+ # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change @@ -2,26 +2,29 @@ name: Create Release
2
2
3
3
on :
4
4
push :
5
- branches :
6
- - " master"
5
+ branches :
6
+ - ' master'
7
7
8
8
jobs :
9
9
bump-version :
10
10
runs-on : ubuntu-latest
11
11
steps :
12
12
- name : Checkout Code
13
- uses : actions/checkout@v2
13
+ uses : actions/checkout@v3
14
14
15
15
- name : Automated Version Bump
16
- uses : phips28/gh-action-bump-version@v7 .1.0
16
+ uses : phips28/gh-action-bump-version@v9 .1.0
17
17
env :
18
18
GITHUB_USER : ${{ secrets.CI_NAME }}
19
19
GITHUB_EMAIL : ${{ secrets.CI_EMAIL }}
20
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
21
+ with :
22
+ tag-prefix : ' v'
20
23
21
24
- name : Set up Node.js
22
- uses : actions/setup-node@v1
25
+ uses : actions/setup-node@v3
23
26
with :
24
- node-version : 12
27
+ node-version : 16
25
28
registry-url : https://registry.npmjs.org/
26
29
27
30
- name : Publish NPM
31
34
npm publish
32
35
env :
33
36
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
34
-
35
- - name : Set up Node.js
36
- uses : actions/setup-node@v1
37
- with :
38
- registry-url : https://npm.pkg.github.com/
39
-
40
- - name : Publish GPR
41
- run : |
42
- npm publish
43
- env :
44
- NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments