forked from open-telemetry/opentelemetry-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: deploy canary releases (open-telemetry#1384)
- Loading branch information
1 parent
70bee58
commit ef046b9
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |