-
Notifications
You must be signed in to change notification settings - Fork 13
42 lines (42 loc) · 1.16 KB
/
publish-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: Publish Canary
on:
push:
branches:
- develop
- release/alpha-**
jobs:
Canary:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 9.0.6
run_install: false
- name: Install Node
uses: actions/setup-node@v3
with:
registry-url: 'https://npm.pkg.github.com/'
node-version: 20
cache: 'pnpm'
scope: '@dpc-sdp'
- name: Install Dependencies
env:
CYPRESS_INSTALL_BINARY: 0
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
run: pnpm install --frozen-lockfile
- name: Publish canary build to @next tag
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.email "[email protected]"
git config --global user.name "SDP Deploy"
pnpm config set access public
pnpm release:publish-next --yes