chore: sync lock #140
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: Release | |
on: | |
push: | |
branches: | |
- main | |
env: | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup bun | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: 1.0.21 | |
- name: Install deps (with cache) | |
run: bun install | |
- name: Build | |
run: bun turbo --filter "./packages/*" build | |
# Using custom token `MY_GITHUB_TOKEN` with more access to avoid rate limiting | |
- name: Create Release | |
id: changeset | |
uses: changesets/[email protected] | |
with: | |
commit: "chore(release): 📦 version packages" | |
title: "chore(release): 📦 version packages" | |
publish: bunx changeset publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
# Changeset has some issues with pnpm so we sync it up manually | |
- name: Sync lockfile if necessary | |
if: steps.changeset.outputs.hasChangesets == 'true' | |
run: | | |
git checkout changeset-release/main | |
bun install | |
git add . | |
git commit -m "chore(release): 📦 sync lockfile" | |
git push origin changeset-release/main |