Skip to content

Commit 629a2f2

Browse files
committed
ci: update release action
1 parent f7684a1 commit 629a2f2

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
1-
# Version tags only
2-
31
name: Release
42

53
on:
64
push:
75
branches: [master]
86

97
jobs:
10-
publish:
11-
name: Publish
8+
release:
9+
name: Release
1210
runs-on: ubuntu-latest
1311
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)
1712
GH_TOKEN: ${{ secrets.GH_TOKEN }}
1813
steps:
1914
- name: Checkout repository
2015
uses: actions/checkout@v2
16+
with:
17+
persist-credentials: false
2118

2219
- name: Install Node.js and npm
2320
uses: actions/setup-node@v1
@@ -43,7 +40,10 @@ jobs:
4340
- name: Releasing
4441
run: |
4542
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
4843
env:
4944
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

0 commit comments

Comments
 (0)