forked from dream2023/super-antd
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 940 Bytes
/
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
name: release
on:
release:
types: [published]
branches:
- main
jobs:
deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
with:
ref: main
- name: Install
run: yarn
- name: Build
run: yarn docs:build
- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs-dist
- name: CI
run: yarn ci
- name: Build
run: yarn build
- name: Replace Version
run: yarn replace-version
- name: Commit Version
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: main
commit_message: "chore(ci): change package.json version"
- name: publish
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: 'public'