-
Notifications
You must be signed in to change notification settings - Fork 17
42 lines (34 loc) · 1.02 KB
/
canary.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: Deploy Canary
# Deploys are manually triggered
on:
push:
branches: [main]
jobs:
deploy:
name: 'Deploy Canary'
environment: auto deploy
timeout-minutes: 15
runs-on: ubuntu-latest # TODO: this should probably run on multiple OSes
steps:
- uses: actions/checkout@v3
with:
# Ensure that git uses your token with admin access to the repo
token: ${{ secrets.GH_TOKEN }}
- name: Prepare repository
# Fetch full git history and tags
run: git fetch --unshallow --tags
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install pnpm
uses: pnpm/action-setup@v2
- name: Install dependencies
run: pnpm install --frozen-lockfile
shell: bash
- name: Deploy Canary
if: ${{ ! inputs.prerelease }}
run: ./scripts/publish-canary.sh
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}