-
-
Notifications
You must be signed in to change notification settings - Fork 164
53 lines (47 loc) · 1.46 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
43
44
45
46
47
48
49
50
51
52
53
# .github/workflows/ci.yml
name: PR Release
on:
push:
branches-ignore:
- $default-branch
- master
jobs:
ci:
name: CI
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@master
with:
# This makes Actions fetch all Git history so that Changesets
# can generate changelogs with the correct commits.
fetch-depth: 0
# If you use a version of Node other than 12, change it here.
- name: Set up Node.js 18.x
uses: actions/setup-node@master
with:
node-version: 18.x
# If you use npm instead of yarn, change this to `npm install`.
- name: Install dependencies
run: yarn
# Change this to customize your build command.
# - name: Build
# run: yarn build
# Change this to customize your test command.
- name: Test
run: yarn test
- name: Create .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: Release snapshot
run: |
npx changeset version --snapshot --openssl-legacy-provider
npx changeset publish --tag canary --openssl-legacy-provider
env:
NODE_OPTIONS: --openssl-legacy-provider
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}