ReviewOS

also looking at this

stacks/dynamodb-tooling

feat: new release script using pantry

#50
Closed glennmichael123 wants to merge feat/pantry-release into main
2 files +47 -13

Review threads live on the whole diff, not on one commit, so none are shown here - a thread's line means something in the branch's final form, and painting it into an intermediate step would put it on code it is not about.

.github/workflows/release.ymlmodified+14-12
Changes to .github/workflows/release.yml
@@ -1,4 +1,4 @@
1name: CI
1name: Releaser
22
33on:
44 push:
@@ -7,27 +7,29 @@ on:
77
88jobs:
99 release:
10 name: Release
10 name: release
1111 runs-on: ubuntu-latest
1212
1313 steps:
14 - uses: actions/checkout@v6
14 - uses: actions/checkout@v4
1515 with:
1616 fetch-depth: 0
1717
18 - name: Set Node.js
19 uses: actions/setup-node@v6
18 - name: Setup Bun
19 uses: oven-sh/setup-bun@v2
2020 with:
21 registry-url: 'https://registry.npmjs.org'
21 bun-version: latest
2222
23 - name: Install Bun
24 uses: oven-sh/setup-bun@v2
23 - name: Setup pantry
24 uses: stacksjs/pantry@v0.7
25 with:
26 setup-only: 'true'
2527
2628 - name: Use cached node_modules
2729 uses: actions/cache@v4
2830 with:
2931 path: node_modules
30 key: node-modules-${{ hashFiles('**/bun.lockb') }}
32 key: node-modules-${{ hashFiles('**/bun.lock') }}
3133 restore-keys: |
3234 node-modules-
3335
@@ -38,11 +40,11 @@ jobs:
3840 run: bun run build
3941
4042 - name: Publish to npm
41 run: npm publish --access public --no-git-checks
43 run: pantry publish --access public
4244 env:
43 NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
45 BUN_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
4446
4547 - name: Create GitHub release
46 run: npx changelogithub
48 run: bunx changelogithub
4749 env:
4850 GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}