From 956cba049bac900a286f8ec3c1168db74f327caf Mon Sep 17 00:00:00 2001 From: glennmichael123 Date: Wed, 14 Jan 2026 18:25:40 +0800 Subject: [PATCH] feat: new release script using pantry --- .github/workflows/release.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3633357..9bb9869 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,8 +6,8 @@ on: - 'v*' jobs: - npm: - name: npm + release: + name: release runs-on: ubuntu-latest steps: @@ -15,13 +15,16 @@ jobs: with: fetch-depth: 0 - - name: Install Bun + - name: Setup Bun uses: oven-sh/setup-bun@v2 - # env: - # BUN_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} with: bun-version: latest + - name: Setup pantry + uses: stacksjs/pantry@v0.7 + with: + setup-only: 'true' + - name: Use cached node_modules uses: actions/cache@v4 with: @@ -34,7 +37,7 @@ jobs: run: bun install - name: Publish to npm - run: ./scripts/publish.sh + run: pantry publish --access public env: BUN_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} @@ -44,7 +47,7 @@ jobs: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - name: Attach Binaries - uses: stacksjs/action-releaser@v1.1.0 + uses: stacksjs/action-releaser@v1.2.7 with: files: | packages/headwind/bin/headwind-linux-x64.zip