Skip to content

Commit

Permalink
Add automatic canary release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredpalmer committed Dec 12, 2019
1 parent 7d3d46c commit 49c9515
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Publish Canary

on:
push:
branches:
- canary

jobs:
build:
runs-on: ubuntu-latest
name: Build and test
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
- run: yarn install --frozen-lockfile
- run: yarn test
env:
CI: true

publish:
needs: build
runs-on: ubuntu-latest
name: Publish canary to NPM
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12

- run: yarn install --frozen-lockfile

- name: Publish
run: yarn run lerna publish from-git --npm-tag canary --yes
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 49c9515

Please sign in to comment.