also looking at this
Feat/pantry release
#1556
8 files
+41
-17
| @@ -6,24 +6,27 @@ 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 | - name: Install Bun | |
| 19 | uses: oven-sh/setup-bun@v2.0.2 | |
| 20 | # env: | |
| 21 | # BUN_AUTH_TOKEN: $ | |
| 18 | - name: Setup Bun | |
| 19 | uses: oven-sh/setup-bun@v2 | |
| 22 | 20 | with: |
| 23 | 21 | bun-version: latest |
| 24 | 22 | |
| 23 | - name: Setup pantry | |
| 24 | uses: stacksjs/pantry@v0.7 | |
| 25 | with: | |
| 26 | setup-only: 'true' | |
| 27 | ||
| 25 | 28 | - name: Use cached node_modules |
| 26 | uses: actions/cache@v4.3.0 | |
| 29 | uses: actions/cache@v4 | |
| 27 | 30 | with: |
| 28 | 31 | path: node_modules |
| 29 | 32 | key: node-modules-${{ hashFiles('**/bun.lock') }} |
| @@ -34,12 +37,12 @@ jobs: | ||
| 34 | 37 | run: bun install |
| 35 | 38 | |
| 36 | 39 | - name: Publish to npm |
| 37 | run: ./scripts/publish.sh | |
| 40 | run: pantry publish --access public | |
| 38 | 41 | env: |
| 39 | 42 | BUN_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |
| 40 | 43 | |
| 41 | 44 | - name: Create GitHub Release |
| 42 | uses: stacksjs/action-releaser@v1.2.6 | |
| 45 | uses: stacksjs/action-releaser@v1.2.7 | |
| 43 | 46 | with: |
| 44 | 47 | files: | |
| 45 | 48 | packages/stx/bin/stx-linux-x64.zip |