fix: auto configuration

This commit is contained in:
Aman Varshney
2025-08-15 14:48:53 +05:30
parent e7f893d76b
commit f34bbf509f
4 changed files with 62 additions and 5 deletions

35
.github/workflows/canary.yaml vendored Normal file
View File

@@ -0,0 +1,35 @@
name: Canary Release
on:
pull_request:
types: [opened, synchronize]
jobs:
canary:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install Dependencies
run: bun install --frozen-lockfile
- name: Build CLI
run: bun run build:cli
- name: Create Canary Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
BTS_TELEMETRY: 1
run: bun auto canary

View File

@@ -4,7 +4,6 @@ on:
push:
branches:
- main
pull_request:
jobs:
release:
@@ -13,9 +12,14 @@ jobs:
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Prepare repository
run: git fetch --unshallow --tags
run: |
git fetch --unshallow --tags
git checkout main
- name: Setup Bun
uses: oven-sh/setup-bun@v2