Skip to content

Commit

Permalink
chore: deploy canary releases (open-telemetry#1384)
Browse files Browse the repository at this point in the history
  • Loading branch information
dyladan authored and jonahrosenblum committed Aug 6, 2020
1 parent 70bee58 commit ef046b9
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/canary.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Deploy Canary Release

on:
push:
branches:
- master

jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@master
with:
node-version: 14.x

- name: restore lerna
uses: actions/cache@master # must use unreleased master to cache multiple paths
id: cache
with:
path: |
node_modules
packages/*/node_modules
metapackages/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }}

- name: Install and Build 🔧
if: steps.cache.outputs.cache-hit != 'true'
run: |
npm install --ignore-scripts
npx lerna bootstrap --no-ci
- name: Publish
run: npx lerna publish --canary --dist-tag canary --preid canary --yes
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit ef046b9

Please sign in to comment.