-
Notifications
You must be signed in to change notification settings - Fork 352
42 lines (37 loc) · 1.03 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
name: Release
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
name: CI
uses: ./.github/workflows/main.yml
docs:
name: Documentation
uses: ./.github/workflows/documentation.yml
secrets: inherit
deploy:
name: Deploy release
runs-on: ubuntu-latest
needs: [ci, docs]
steps:
- name: Check out project
uses: actions/checkout@v4
with:
# Fetch all history for all branches and tags, which is needed for the release script.
fetch-depth: 0
# Pass in an administrator token to get around branch protection.
token: ${{ secrets.GH_TOKEN_REDALLEN }}
- name: Set up and build project
uses: ./.github/actions/setup-project
with:
skip-build-cache: true
- name: Deploy to NPM and Github
run: .github/release.sh
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_PR_TOKEN: ${{ secrets.GH_PR_TOKEN }}