-
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7e32306
commit eb62f47
Showing
1 changed file
with
6 additions
and
32 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 |
---|---|---|
|
@@ -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 | ||
|
@@ -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 |
eb62f47
There was a problem hiding this comment.
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
eb62f47
There was a problem hiding this comment.
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