5
5
tags :
6
6
- ' v*'
7
7
8
- permissions :
9
- contents : write
10
- packages : write
11
- id-token : write
12
-
13
8
jobs :
14
9
npm :
10
+ name : npm
15
11
runs-on : ubuntu-latest
16
- outputs :
17
- version : ${{ env.VERSION }}
12
+
18
13
steps :
19
- - name : Checkout Code
20
- uses : actions/checkout@v4
14
+ - uses : actions/checkout@v4
21
15
with :
22
16
fetch-depth : 0
23
17
24
- - name : Setup Bun
18
+ - name : Install Bun
25
19
uses : oven-sh/setup-bun@v2
20
+ # env:
21
+ # BUN_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
22
+ with :
23
+ bun-version : latest
26
24
27
- - name : Use Cached node_modules
25
+ - name : Use cached node_modules
28
26
uses : actions/cache@v4
29
27
with :
30
28
path : node_modules
@@ -35,33 +33,24 @@ jobs:
35
33
- name : Install Dependencies
36
34
run : bun install
37
35
38
- - name : Extract tag version
39
- id : get_version
40
- run : echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
41
-
42
36
- name : Publish to npm
43
- run : bun publish --access public
37
+ run : ./scripts/ publish.sh
44
38
env :
45
39
BUN_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
46
40
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
49
47
50
48
with :
51
49
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
66
55
env :
67
56
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments