diff --git a/.github/workflows/canary.yaml b/.github/workflows/canary.yaml new file mode 100644 index 0000000000..12fd32458d --- /dev/null +++ b/.github/workflows/canary.yaml @@ -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 }}