Skip to content

Commit b65a7c6

Browse files
committed
fix(builder): remerge version and publish ci into one unique ci
1 parent e757051 commit b65a7c6

2 files changed

Lines changed: 31 additions & 99 deletions

File tree

.github/workflows/publish.yml

Lines changed: 0 additions & 94 deletions
This file was deleted.
Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Version
1+
name: Release
22

33
on:
44
workflow_dispatch:
@@ -14,14 +14,15 @@ on:
1414

1515
permissions:
1616
contents: write
17+
id-token: write
1718

1819
concurrency:
19-
group: version-${{ github.ref }}
20+
group: release-${{ github.ref }}
2021
cancel-in-progress: false
2122

2223
jobs:
23-
version:
24-
name: Bump version and create tag
24+
release:
25+
name: Version, tag and publish
2526
runs-on: ubuntu-latest
2627

2728
steps:
@@ -30,11 +31,17 @@ jobs:
3031
with:
3132
fetch-depth: 0
3233

34+
- name: Setup Bun
35+
uses: oven-sh/setup-bun@v2
36+
with:
37+
bun-version: "1.3.11"
38+
3339
- name: Setup Node
3440
uses: actions/setup-node@v6
3541
with:
3642
node-version: "22.14.0"
3743
check-latest: true
44+
registry-url: "https://registry.npmjs.org"
3845

3946
- name: Update npm
4047
run: npm install -g npm@^11.5.1
@@ -43,6 +50,19 @@ jobs:
4350
run: |
4451
node --version
4552
npm --version
53+
bun --version
54+
55+
- name: Install dependencies
56+
run: bun install --frozen-lockfile
57+
58+
- name: Lint
59+
run: bun run lint
60+
61+
- name: Typecheck
62+
run: bun run typecheck
63+
64+
- name: Test
65+
run: bun run test
4666

4767
- name: Configure git
4868
run: |
@@ -56,4 +76,10 @@ jobs:
5676
- name: Push commit and tag
5777
run: |
5878
git push origin HEAD
59-
git push origin --tags
79+
git push origin --tags
80+
81+
- name: Build package
82+
run: bun run build
83+
84+
- name: Publish package
85+
run: npm publish --provenance

0 commit comments

Comments
 (0)