Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 61c5d89

Browse files
committed
Set up canary builds
1 parent a26e566 commit 61c5d89

File tree

3 files changed

+59
-5
lines changed

3 files changed

+59
-5
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/checkout@v3
1515
- uses: actions/setup-node@v3
1616
with:
17-
node-version: 20.x
17+
node-version: 16.x
1818
cache: 'yarn'
1919
- run: yarn --frozen-lockfile
2020
- run: yarn build
@@ -25,7 +25,7 @@ jobs:
2525
- uses: actions/checkout@v3
2626
- uses: actions/setup-node@v3
2727
with:
28-
node-version: 20.x
28+
node-version: 16.x
2929
cache: 'yarn'
3030
- run: yarn --frozen-lockfile
3131
- run: yarn build
@@ -36,7 +36,7 @@ jobs:
3636
- uses: actions/checkout@v3
3737
- uses: actions/setup-node@v3
3838
with:
39-
node-version: 20.x
39+
node-version: 16.x
4040
cache: 'yarn'
4141
- run: yarn --frozen-lockfile
4242
- run: yarn build
@@ -48,7 +48,7 @@ jobs:
4848
- uses: actions/checkout@v3
4949
- uses: actions/setup-node@v3
5050
with:
51-
node-version: 20.x
51+
node-version: 16.x
5252
cache: 'yarn'
5353
- run: yarn --frozen-lockfile
5454
- run: yarn build

.github/workflows/release-canary.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Release (canary)
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- 'packages/backend-tools/**'
9+
- 'packages/uif/**'
10+
- '.github/workflows/release-canary.yml'
11+
12+
jobs:
13+
release-canary:
14+
name: Release (canary)
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
- uses: actions/setup-node@v3
19+
with:
20+
node-version: 16.x
21+
cache: 'yarn'
22+
23+
- run: yarn --frozen-lockfile
24+
- run: yarn build
25+
26+
- name: Set backend-tools version
27+
run: |
28+
# yarn changeset version
29+
cd packages/backend-tools
30+
npm pkg set version=$(cat package.json | jq .version -r)-canary.$(date +'%Y%m%dT%H%M%S')
31+
echo "Version changed: $(npm pkg get version)"
32+
33+
- name: Set uif version
34+
run: |
35+
# yarn changeset version
36+
cd packages/uif
37+
npm pkg set version=$(cat package.json | jq .version -r)-canary.$(date +'%Y%m%dT%H%M%S')
38+
echo "Version changed: $(npm pkg get version)"
39+
40+
- name: Publish backend-tools to npm
41+
uses: JS-DevTools/npm-publish@v1
42+
with:
43+
package: packages/backend-tools/package.json
44+
token: ${{ secrets.NPM_TOKEN }}
45+
dry-run: false
46+
tag: canary
47+
48+
- name: Publish uif to npm
49+
uses: JS-DevTools/npm-publish@v1
50+
with:
51+
package: packages/uif/package.json
52+
token: ${{ secrets.NPM_TOKEN }}
53+
dry-run: false
54+
tag: canary

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20
1+
16

0 commit comments

Comments
 (0)