also looking at this
feat: new release script using pantry
#23
1 file
+14
-7
| @@ -1,4 +1,4 @@ | ||
| 1 | name: CI | |
| 1 | name: Releaser | |
| 2 | 2 | |
| 3 | 3 | on: |
| 4 | 4 | push: |
| @@ -6,23 +6,30 @@ on: | ||
| 6 | 6 | - 'v*' |
| 7 | 7 | |
| 8 | 8 | jobs: |
| 9 | release: | |
| 10 | name: release | |
| 9 | npm: | |
| 10 | name: npm | |
| 11 | 11 | runs-on: ubuntu-latest |
| 12 | 12 | |
| 13 | 13 | steps: |
| 14 | - uses: actions/checkout@v5 | |
| 14 | - uses: actions/checkout@v4 | |
| 15 | 15 | with: |
| 16 | 16 | fetch-depth: 0 |
| 17 | 17 | |
| 18 | - name: Install Bun | |
| 18 | - name: Setup Bun | |
| 19 | 19 | uses: oven-sh/setup-bun@v2 |
| 20 | with: | |
| 21 | bun-version: latest | |
| 22 | ||
| 23 | - name: Setup pantry | |
| 24 | uses: stacksjs/pantry@v0.7 | |
| 25 | with: | |
| 26 | setup-only: 'true' | |
| 20 | 27 | |
| 21 | 28 | - name: Use cached node_modules |
| 22 | 29 | uses: actions/cache@v4 |
| 23 | 30 | with: |
| 24 | 31 | path: node_modules |
| 25 | key: node-modules-${{ hashFiles('**/bun.lockb') }} | |
| 32 | key: node-modules-${{ hashFiles('**/bun.lock') }} | |
| 26 | 33 | restore-keys: | |
| 27 | 34 | node-modules- |
| 28 | 35 | |
| @@ -30,7 +37,7 @@ jobs: | ||
| 30 | 37 | run: bun install |
| 31 | 38 | |
| 32 | 39 | - name: Publish to npm |
| 33 | run: bun publish --access public | |
| 40 | run: pantry publish --access public | |
| 34 | 41 | env: |
| 35 | 42 | BUN_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |
| 36 | 43 | |