File tree Expand file tree Collapse file tree 12 files changed +2054
-4505
lines changed
Expand file tree Collapse file tree 12 files changed +2054
-4505
lines changed Original file line number Diff line number Diff line change @@ -19,19 +19,17 @@ jobs:
1919 with :
2020 fetch-depth : 0
2121
22- - uses : actions /setup-node@v4
22+ - uses : oven-sh /setup-bun@v1
2323 with :
24- node-version : " 20"
25- cache : " npm"
26- registry-url : " https://registry.npmjs.org"
24+ bun-version : " 1.2.22"
2725
28- - run : npm ci
29- - run : npm run check
30- - run : npm run build
26+ - run : bun install --frozen-lockfile
27+ - run : bun run check
28+ - run : bun run build
3129
3230 - name : Get version from package.json
3331 id : pkg
34- run : echo "version=$(node -p " require('./package.json').version")" >> $GITHUB_OUTPUT
32+ run : echo "version=$(bun -e "console.log( require('./package.json').version) ")" >> $GITHUB_OUTPUT
3533
3634 - name : Check if tag exists
3735 id : tag-check
@@ -64,20 +62,18 @@ jobs:
6462 with :
6563 fetch-depth : 0
6664
67- - uses : actions /setup-node@v4
65+ - uses : oven-sh /setup-bun@v1
6866 with :
69- node-version : " 20"
70- registry-url : " https://registry.npmjs.org"
71- cache : " npm"
67+ bun-version : " 1.2.22"
7268
73- - run : npm ci
74- - run : npm run check
75- - run : npm run build
69+ - run : bun install
70+ - run : bun run check
71+ - run : bun run build
7672
7773 - name : Publish to npm
78- run : npm publish --provenance --access public
74+ run : bun publish --access public
7975 env :
80- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
76+ NPM_CONFIG_TOKEN : ${{ secrets.NPM_TOKEN }}
8177
8278 - name : Create GitHub Release
8379 uses : softprops/action-gh-release@v1
Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ name: Test Install
33on :
44 pull_request :
55 branches : [main]
6- push :
7- branches : [main]
86
97jobs :
108 build :
@@ -14,26 +12,24 @@ jobs:
1412 - name : Checkout code
1513 uses : actions/checkout@v4
1614
17- - name : Setup Node.js
18- uses : actions /setup-node@v4
15+ - name : Setup Bun
16+ uses : oven-sh /setup-bun@v1
1917 with :
20- node-version : " 20"
21- cache : " npm"
18+ bun-version : " 1.2.22"
2219
2320 - name : Install dependencies
24- run : npm ci
25-
26- - name : Type check
27- run : npm run check
21+ run : bun install
2822
2923 - name : Build package
30- run : npm run build
24+ run : bun run build
25+
26+ - name : Dry run publish
27+ run : bun publish --dry-run
28+ env :
29+ NPM_CONFIG_TOKEN : ${{ secrets.NPM_TOKEN }}
3130
3231 - name : Check build output
3332 run : |
34- set -e
35-
36- # Verify main files exist
3733 test -f dist/index.mjs
3834 test -f dist/index.umd.js
3935 test -f dist/index.d.ts
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1+ [install .lockfile ]
2+ print = " yarn"
3+
4+ [install ]
5+ registry = " https://registry.npmjs.org"
You can’t perform that action at this time.
0 commit comments