Skip to content

Commit d3e5f20

Browse files
chore: create release-rc github action
1 parent 05382b8 commit d3e5f20

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/release-rc.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: 'Release RC'
2+
3+
on:
4+
workflow_dispatch
5+
6+
jobs:
7+
build-and-release:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/[email protected]
12+
with:
13+
token: ${{ secrets.ACCESS_TOKEN }}
14+
15+
- name: Setup Node.js environment
16+
uses: actions/[email protected]
17+
with:
18+
node-version: 12.x
19+
20+
- name: Install, test and build
21+
run: |
22+
yarn install
23+
yarn test
24+
yarn build
25+
26+
- name: 'npm auth'
27+
run: |
28+
npm config set //registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN
29+
npm config set //registry.npmjs.org/:username=${NPM_USERNAME}
30+
npm config set //registry.npmjs.org/:email=${NPM_EMAIL}
31+
env:
32+
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
33+
NPM_USERNAME: ${{ secrets.NPM_USERNAME }}
34+
NPM_EMAIL: ${{ secrets.NPM_EMAIL }}
35+
36+
- name: 'Release RC'
37+
run: |
38+
${GITHUB_WORKSPACE}/node_modules/.bin/lerna publish prerelease \
39+
--conventional-prerelease \
40+
--create-release github \
41+
--dist-tag next \
42+
--pre-dist-tag next
43+
env:
44+
GH_TOKEN: ${{ secrets.ACCESS_TOKEN }}
45+

0 commit comments

Comments
 (0)