Skip to content

Commit 702a71c

Browse files
committed
chore: wip
1 parent 1432236 commit 702a71c

File tree

1 file changed

+21
-32
lines changed

1 file changed

+21
-32
lines changed

.github/workflows/release.yml

Lines changed: 21 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,24 @@ on:
55
tags:
66
- 'v*'
77

8-
permissions:
9-
contents: write
10-
packages: write
11-
id-token: write
12-
138
jobs:
149
npm:
10+
name: npm
1511
runs-on: ubuntu-latest
16-
outputs:
17-
version: ${{ env.VERSION }}
12+
1813
steps:
19-
- name: Checkout Code
20-
uses: actions/checkout@v4
14+
- uses: actions/checkout@v4
2115
with:
2216
fetch-depth: 0
2317

24-
- name: Setup Bun
18+
- name: Install Bun
2519
uses: oven-sh/setup-bun@v2
20+
# env:
21+
# BUN_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
22+
with:
23+
bun-version: latest
2624

27-
- name: Use Cached node_modules
25+
- name: Use cached node_modules
2826
uses: actions/cache@v4
2927
with:
3028
path: node_modules
@@ -35,33 +33,24 @@ jobs:
3533
- name: Install Dependencies
3634
run: bun install
3735

38-
- name: Extract tag version
39-
id: get_version
40-
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
41-
4236
- name: Publish to npm
43-
run: bun publish --access public
37+
run: ./scripts/publish.sh
4438
env:
4539
BUN_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
4640

47-
- name: Create GitHub Release
48-
id: create_release
41+
- name: Create GitHub release
42+
run: bunx changelogithub
43+
env:
44+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
45+
46+
- name: Attach Binaries
4947
uses: stacksjs/[email protected]
5048
with:
5149
files: |
52-
./packages/dtsx/bin/dtsx-linux-x64.zip
53-
./packages/dtsx/bin/dtsx-linux-arm64.zip
54-
./packages/dtsx/bin/dtsx-windows-x64.zip
55-
./packages/dtsx/bin/dtsx-darwin-x64.zip
56-
./packages/dtsx/bin/dtsx-darwin-arm64.zip
57-
# --- Homebrew tap update support ---
58-
# Path to your Homebrew formula template (update this path as needed)
59-
# homebrewFormula: .github/homebrew-formula.rb
60-
# The owner/repo of your Homebrew tap (update this value as needed)
61-
# homebrewRepo: stacksjs/homebrew-tap
62-
# Optionally uncomment and set these if you need custom values:
63-
# homebrewBranch: main
64-
# homebrewPath: Formula
65-
# homebrewCommitFormat: "update: {{ formula }} to {{ version }}"
50+
packages/dtsx/bin/dtsx-linux-x64.zip
51+
packages/dtsx/bin/dtsx-linux-arm64.zip
52+
packages/dtsx/bin/dtsx-windows-x64.zip
53+
packages/dtsx/bin/dtsx-darwin-x64.zip
54+
packages/dtsx/bin/dtsx-darwin-arm64.zip
6655
env:
6756
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)