also looking at this
feat: new release script using pantry
#109
1 file
+10
-5
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.
| @@ -6,18 +6,23 @@ 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.0.1 | |
| 14 | - uses: actions/checkout@v4 | |
| 15 | 15 | with: |
| 16 | 16 | fetch-depth: 0 |
| 17 | 17 | |
| 18 | 18 | - name: Install Bun |
| 19 | 19 | uses: oven-sh/setup-bun@v2.1.0 |
| 20 | 20 | |
| 21 | - name: Setup pantry | |
| 22 | uses: stacksjs/pantry@v0.7 | |
| 23 | with: | |
| 24 | setup-only: 'true' | |
| 25 | ||
| 21 | 26 | - name: Use cached node_modules |
| 22 | 27 | uses: actions/cache@v5.0.1 |
| 23 | 28 | with: |
| @@ -30,7 +35,7 @@ jobs: | ||
| 30 | 35 | run: bun install |
| 31 | 36 | |
| 32 | 37 | - name: Publish to npm |
| 33 | run: bun publish --access public | |
| 38 | run: pantry publish --access public | |
| 34 | 39 | env: |
| 35 | 40 | BUN_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |
| 36 | 41 | |
| @@ -40,7 +45,7 @@ jobs: | ||
| 40 | 45 | GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |
| 41 | 46 | |
| 42 | 47 | - name: Attach Binaries |
| 43 | uses: softprops/action-gh-release@v2.5.0 | |
| 48 | uses: stacksjs/action-releaser@v1.2.7 | |
| 44 | 49 | with: |
| 45 | 50 | files: | |
| 46 | 51 | bin/router-linux-x64 |