also looking at this
feat: new release script using pantry
#55
1 file
+13
-6
| @@ -6,17 +6,24 @@ on: | ||
| 6 | 6 | - 'v*' |
| 7 | 7 | |
| 8 | 8 | jobs: |
| 9 | npm: | |
| 10 | name: npm | |
| 9 | release: | |
| 10 | name: release | |
| 11 | 11 | runs-on: ubuntu-latest |
| 12 | 12 | |
| 13 | 13 | steps: |
| 14 | - uses: actions/checkout@v6 | |
| 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 |
| @@ -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 | |
| @@ -40,7 +47,7 @@ jobs: | ||
| 40 | 47 | GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |
| 41 | 48 | |
| 42 | 49 | - name: Attach Binaries |
| 43 | uses: softprops/action-gh-release@v2 | |
| 50 | uses: stacksjs/action-releaser@v1.2.7 | |
| 44 | 51 | with: |
| 45 | 52 | files: | |
| 46 | 53 | bin/bin-name-linux-x64 |