1- name : test
1+ name : ci
22
33on :
44 pull_request :
@@ -13,37 +13,89 @@ concurrency:
1313 cancel-in-progress : true
1414
1515jobs :
16- test :
16+ lint :
1717 runs-on : ubuntu-latest
1818 timeout-minutes : 10
1919
20- strategy :
21- matrix :
22- node-version : [20.x]
20+ steps :
21+ - uses : actions/checkout@v6
22+
23+ - uses : oven-sh/setup-bun@v2
24+
25+ - uses : actions/setup-node@v6
26+ with :
27+ node-version : ' 24.x'
28+ registry-url : ' https://registry.npmjs.org'
29+
30+ - name : Install Dependency
31+ env :
32+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33+ run : bun install --frozen-lockfile
34+
35+ - name : Run lint and typecheck
36+ env :
37+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38+ run : bun run lint
39+
40+ test :
41+ runs-on : ubuntu-latest
42+ timeout-minutes : 10
2343
2444 steps :
25- - uses : actions/checkout@v4
45+ - uses : actions/checkout@v6
46+
2647 - uses : oven-sh/setup-bun@v2
27- - uses : actions/setup-node@v4
48+
49+ - uses : actions/setup-node@v6
2850 with :
29- node-version : ${{ matrix.node-version }}
51+ node-version : ' 24.x '
3052 registry-url : ' https://registry.npmjs.org'
3153
3254 - name : Install Dependency
3355 env :
3456 NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35- NODE_OPTIONS : ' --max_old_space_size=4096'
3657 run : bun install --frozen-lockfile
3758
3859 - name : Run unit tests with coverage
3960 env :
4061 NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41- NODE_OPTIONS : ' --max_old_space_size=4096'
4262 run : bun run test:coverage
4363
4464 - name : Upload coverage artifact
45- uses : actions/upload-artifact@v4
65+ uses : actions/upload-artifact@v7
4666 with :
4767 name : coverage
4868 path : coverage
4969 if-no-files-found : error
70+
71+ publish-dry-run :
72+ runs-on : ubuntu-latest
73+ timeout-minutes : 10
74+
75+ steps :
76+ - uses : actions/checkout@v6
77+ with :
78+ fetch-depth : 0
79+
80+ - uses : oven-sh/setup-bun@v2
81+
82+ - uses : actions/setup-node@v6
83+ with :
84+ node-version : ' 24.x'
85+ registry-url : ' https://registry.npmjs.org'
86+
87+ - name : Install Dependency
88+ env :
89+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
90+ run : bun install --frozen-lockfile
91+
92+ - name : Prepare dry run publish version
93+ env :
94+ PUBLISH_DRY_RUN : ' true'
95+ PUBLISH_VERSION : 0.0.0-dry-run.${{ github.run_id }}.${{ github.run_attempt }}
96+ run : bun scripts/prepublish.ts
97+
98+ - name : Dry run publish
99+ env :
100+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
101+ run : npm publish --dry-run --access public --tag dry-run
0 commit comments