chore: merge from main #36
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
# Publish canary release to NPM | |
name: Release - canary | |
# This workflow is triggered every time a change is pushed to the | |
# `main` branch | |
on: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
release-canary: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: write | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1 | |
with: | |
fetch-depth: '0' | |
# https://github.com/actions/checkout#push-a-commit-using-the-built-in-token | |
- run: | | |
git config user.email 41898282+github-actions[bot]@users.noreply.github.com | |
git config user.name $GITHUB_ACTOR | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
registry-url: https://registry.npmjs.org | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn install | |
- name: Continuous integration check (includes build) | |
run: yarn ci-check | |
- name: Set NPM token | |
run: | | |
echo "//registry.npmjs.org/:_authToken=${{ secrets.CARBON_BOT_NPM_TOKEN }}" >> .npmrc | |
# Publish release with canary tag to NPM using Lerna | |
- name: Publish canary release of packages | |
run: | | |
yarn lerna publish --canary --preid canary --dist-tag canary --yes |