File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
- # Version tags only
2
-
3
1
name : Release
4
2
5
3
on :
6
4
push :
7
5
branches : [master]
8
6
9
7
jobs :
10
- publish :
11
- name : Publish
8
+ release :
9
+ name : Release
12
10
runs-on : ubuntu-latest
13
11
env :
14
- # Ensure release notes are published by our `serverless-ci` bot
15
- # (If instead we'd use unconditionally provided secrets.GITHUB_TOKEN then
16
- # "github-actions" user will be listed as release publisher)
17
12
GH_TOKEN : ${{ secrets.GH_TOKEN }}
18
13
steps :
19
14
- name : Checkout repository
20
15
uses : actions/checkout@v2
16
+ with :
17
+ persist-credentials : false
21
18
22
19
- name : Install Node.js and npm
23
20
uses : actions/setup-node@v1
43
40
- name : Releasing
44
41
run : |
45
42
npm run release
46
- # Note: Setting NODE_AUTH_TOKEN as job|workspace wide env var won't work
47
- # as it appears actions/setup-node sets own value
48
43
env :
49
44
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
45
+ GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
46
+ GIT_AUTHOR_NAME : slsplus
47
+ GIT_AUTHOR_EMAIL : yuga.sun.bj@gmail.com
48
+ GIT_COMMITTER_NAME : slsplus
49
+ GIT_COMMITTER_EMAIL : yuga.sun.bj@gmail.com
You can’t perform that action at this time.
0 commit comments