Publish canary #16
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
name: Publish canary | |
on: | |
workflow_run: | |
workflows: ["CI"] | |
types: [completed] | |
branches: [canary] | |
workflow_dispatch: {} | |
env: | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
jobs: | |
release: | |
runs-on: buildjet-4vcpu-ubuntu-2204 | |
strategy: | |
matrix: | |
node-version: [19] | |
permissions: write-all | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm install --filter {packages/**}... --filter . | |
- name: Config npm token | |
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc | |
- name: create and publish versions | |
uses: changesets/action@v1 | |
with: | |
createGithubReleases: true | |
version: pnpm ci:version | |
commit: "chore: update versions" | |
title: "chore: update versions" | |
publish: pnpm ci:publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |