-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (38 loc) · 982 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
name: release
on:
workflow_dispatch:
repository_dispatch:
types: [release]
jobs:
release:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- uses: actions/setup-node@v3
with:
node-version: 18
- run: |
npm ci
npm run build:lib
npm run build:demo
npm run build:docs
npm run build:lib
env:
CI: true
- run: npx semantic-release
if: success()
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# Need owner/admin account to bypass branch protection
GIT_COMMITTER_NAME: sinedied
GIT_COMMITTER_EMAIL: [email protected]
- uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.GH_TOKEN }}
publish_dir: ./dist/docs
user_name: sinedied
user_email: [email protected]