Skip to content

Commit 00f1e2e

Browse files
committed
ci: update auto-release workflow
1 parent de271cd commit 00f1e2e

1 file changed

Lines changed: 11 additions & 25 deletions

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@ concurrency:
1111

1212
env:
1313
HUSKY: 0
14-
NODE_VERSION: 20
15-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # for `npm publish`
1614
BUN_VERSION: latest
17-
# NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }} # for `bun publish`
15+
NODE_VERSION: 24
16+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # for `npm publish`
1817
NPM_REGISTRY_URL: https://registry.npmjs.org/
19-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2018

2119
jobs:
2220
release:
@@ -26,34 +24,22 @@ jobs:
2624
id-token: write
2725
pull-requests: write
2826
steps:
29-
- name: Checkout Project Artifacts
30-
uses: actions/checkout@v4
31-
- name: Setup Bun.js
32-
uses: oven-sh/setup-bun@v2
27+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
28+
- uses: oven-sh/setup-bun@ecf28ddc73e819eb6fa29df6b34ef8921c743461 # v2.1.3
3329
with:
3430
bun-version: ${{ env.BUN_VERSION }}
35-
- name: Setup Node.js
36-
uses: actions/setup-node@v4
31+
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
3732
with:
3833
node-version: ${{ env.NODE_VERSION }}
3934
registry-url: ${{ env.NPM_REGISTRY_URL }}
4035

41-
- name: Install Dependencies
42-
run: bun install --frozen-lockfile
43-
44-
- name: Build Distribution Artifacts
45-
run: bun run build
46-
47-
- name: Check Types & Linting
48-
run: |
49-
bun run type-check
50-
bun run lint
51-
52-
- name: Run Unit Tests
53-
run: bun run test:ci
36+
- run: bun install --frozen-lockfile
37+
- run: bun run build
38+
- run: bun run type-check
39+
- run: bun run lint:ci
40+
- run: bun run test:ci
5441

55-
- name: Create Release PR or Publish to NPM
56-
uses: changesets/action@v1
42+
- uses: changesets/action@6a0a831ff30acef54f2c6aa1cbbc1096b066edaf # v1.7.0
5743
with:
5844
version: bun run version
5945
publish: bun run release

0 commit comments

Comments
 (0)