Skip to content

Commit ccba7da

Browse files
ci: publish canary release (#3257)
1 parent 24a7b8e commit ccba7da

File tree

4 files changed

+41
-24
lines changed

4 files changed

+41
-24
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Publish Canary
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
node-version: [10.x, 12.x, 14.x]
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
- run: yarn install --frozen-lockfile
23+
- run: yarn prettier:check
24+
- run: yarn test
25+
26+
publish-canary:
27+
runs-on: ubuntu-latest
28+
needs: test
29+
steps:
30+
- uses: actions/checkout@v2
31+
- uses: actions/setup-node@v1
32+
with:
33+
node-version: 12.x
34+
registry-url: 'https://registry.npmjs.org'
35+
- run: yarn install --frozen-lockfile
36+
- run: yarn build
37+
- run: npx rollingversions publish --canary $GITHUB_RUN_NUMBER
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/rollingversions-dry-run.yml

-21
This file was deleted.

.github/workflows/rollingversions.yml

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
node-version: 12.x
3232
registry-url: 'https://registry.npmjs.org'
3333
- run: yarn install --frozen-lockfile
34+
- run: yarn build
3435
- run: npx rollingversions publish
3536
env:
3637
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: Test
22

33
on:
4-
push:
5-
branches:
6-
- master
74
pull_request:
85
branches:
96
- master

0 commit comments

Comments
 (0)