-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
43 lines (42 loc) · 1.25 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Release
on:
push:
branches:
- formily_next
jobs:
release:
runs-on: ubuntu-latest
if: contains(github.event.head_commit.message, 'chore(release)')
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 0
ref: formily_next
- uses: actions/setup-node@v1
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: |
yarn -v
yarn --ignore-engines
yarn build
yarn test:prod
env:
NODE_OPTIONS: --max_old_space_size=4096
REGISTRY: https://registry.npmjs.org
- uses: janrywang/github-tag-release@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
dingtalk_tokens: ${{secrets.DING_TALK_TOKENS}}
- run: yarn run release:force
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY_ID }}
ACCESS_KEY_SECRET: ${{ secrets.ACCESS_KEY_SECRET }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true