Skip to content

Commit

Permalink
chore: bun in release script
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusmarminge committed Jan 12, 2024
1 parent 7e32306 commit eb62f47
Showing 1 changed file with 6 additions and 32 deletions.
38 changes: 6 additions & 32 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,32 +18,16 @@ jobs:
with:
fetch-depth: 0

- name: Use PNPM
uses: pnpm/[email protected]

- name: Setup Node.js
uses: actions/setup-node@v3
- name: Setup bun
uses: oven-sh/setup-bun@v1
with:
node-version: 18

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
bun-version: 1.0.21

- name: Install deps (with cache)
run: pnpm install
run: bun install

- name: Build
run: pnpm turbo --filter "./packages/*" build
run: bun turbo --filter "./packages/*" build

# Using custom token `MY_GITHUB_TOKEN` with more access to avoid rate limiting
- name: Create Release
Expand All @@ -52,17 +36,7 @@ jobs:
with:
commit: "chore(release): 📦 version packages"
title: "chore(release): 📦 version packages"
publish: npx changeset publish
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
pnpm install --no-frozen-lockfile
git add .
git commit -m "chore(release): 📦 sync lockfile"
git push origin changeset-release/main

2 comments on commit eb62f47

@vercel
Copy link

@vercel vercel bot commented on eb62f47 Jan 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

t3-env – ./docs

t3-env-git-main-t3-oss.vercel.app
t3-env-t3-oss.vercel.app
t3-env.vercel.app
env.t3.gg
env.t3.wtf

@vercel
Copy link

@vercel vercel bot commented on eb62f47 Jan 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

t3-env-nextjs – ./examples/nextjs

t3-env-nextjs.vercel.app
t3-env-nextjs-t3-oss.vercel.app
t3-env-nextjs-git-main-t3-oss.vercel.app

Please sign in to comment.