also looking at this
chore(deps): update all non-major dependencies
#2624
3 files
+27
-44
| @@ -4,53 +4,36 @@ on: | ||
| 4 | 4 | push: |
| 5 | 5 | tags: |
| 6 | 6 | - 'v*' |
| 7 | workflow_dispatch: | |
| 7 | 8 | |
| 8 | 9 | jobs: |
| 9 | 10 | npm: |
| 10 | name: npm | |
| 11 | 11 | runs-on: ubuntu-latest |
| 12 | permissions: | |
| 13 | contents: write | |
| 14 | id-token: write | |
| 12 | 15 | |
| 13 | 16 | steps: |
| 14 | - uses: actions/checkout@v4 | |
| 17 | - name: Checkout | |
| 18 | uses: actions/checkout@v6.0.2 | |
| 15 | 19 | with: |
| 16 | 20 | fetch-depth: 0 |
| 17 | 21 | |
| 18 | - name: Install Bun | |
| 22 | - name: Setup Bun | |
| 19 | 23 | uses: oven-sh/setup-bun@v2 |
| 20 | # env: | |
| 21 | # BUN_AUTH_TOKEN: $ | |
| 22 | with: | |
| 23 | bun-version: latest | |
| 24 | 24 | |
| 25 | - name: Use cached node_modules | |
| 26 | uses: actions/cache@v4 | |
| 27 | with: | |
| 28 | path: node_modules | |
| 29 | key: node-modules-${{ hashFiles('**/bun.lock') }} | |
| 30 | restore-keys: | | |
| 31 | node-modules- | |
| 25 | - name: Setup Pantry | |
| 26 | uses: home-lang/pantry/packages/action@main | |
| 32 | 27 | |
| 33 | 28 | - name: Install Dependencies |
| 34 | 29 | run: bun install |
| 35 | 30 | |
| 36 | - name: Publish to npm | |
| 37 | run: ./scripts/publish.sh | |
| 31 | - name: Publish | |
| 32 | run: pantry publish --npm --access public | |
| 38 | 33 | env: |
| 39 | BUN_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | |
| 34 | NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| 40 | 35 | |
| 41 | - name: Create GitHub release | |
| 42 | run: bunx changelogithub | |
| 43 | env: | |
| 44 | GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
| 45 | ||
| 46 | - name: Attach Binaries | |
| 47 | uses: stacksjs/action-releaser@v1.1.0 | |
| 48 | with: | |
| 49 | files: | | |
| 50 | packages/ts-starter-monorepo/bin/ts-starter-monorepo-linux-x64.zip | |
| 51 | packages/ts-starter-monorepo/bin/ts-starter-monorepo-linux-arm64.zip | |
| 52 | packages/ts-starter-monorepo/bin/ts-starter-monorepo-windows-x64.zip | |
| 53 | packages/ts-starter-monorepo/bin/ts-starter-monorepo-darwin-x64.zip | |
| 54 | packages/ts-starter-monorepo/bin/ts-starter-monorepo-darwin-arm64.zip | |
| 36 | - name: Create GitHub Release | |
| 37 | uses: stacksjs/action-releaser@v1.2.9 | |
| 55 | 38 | env: |
| 56 | 39 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |