-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.01 KB
/
deploy.yaml
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
44
name: Deploy
on:
push:
branches:
- release
jobs:
deploy:
runs-on: ubuntu-20.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Fetch tags
run: git fetch --tags origin release
# set up git since we will later push to the repo
- run: git config --global user.name "GitHub CI bot"
- run: git config --global user.email "[email protected]"
- run: make install
- name: Authenticate npm
run: ./bin/ci/npm-auth.sh
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Release
run: make publish
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Merge release
run: ./bin/ci/sync-release.sh
if: success()
env:
# The secret is passed automatically. Nothing to configure.
github-token: ${{ secrets.GITHUB_TOKEN }}