refactor: replace debug with obug #395
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: release | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| types: [closed] | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: {} | |
| jobs: | |
| pr: | |
| if: github.event_name == 'push' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) && github.repository_owner == 'nuxt' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - uses: danielroe/uppt/pr@7bcfb5397c37202ef882363f755423130419d28a # v0.5.5 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| packages: | | |
| packages/create-nuxt | |
| packages/nuxi | |
| packages/nuxt-cli | |
| release: | |
| if: | | |
| github.event_name == 'pull_request' | |
| && github.event.pull_request.merged == true | |
| && startsWith(github.event.pull_request.head.ref, 'release/v') | |
| && github.event.pull_request.head.repo.full_name == github.repository | |
| runs-on: ubuntu-latest | |
| concurrency: | |
| group: release-${{ github.event.pull_request.number }} | |
| cancel-in-progress: false | |
| permissions: | |
| contents: write | |
| actions: write | |
| steps: | |
| - uses: danielroe/uppt/release@7bcfb5397c37202ef882363f755423130419d28a # v0.5.5 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| packages: | | |
| packages/create-nuxt | |
| packages/nuxi | |
| packages/nuxt-cli | |
| pack: | |
| if: github.event_name == 'workflow_dispatch' && startsWith(github.ref, 'refs/tags/v') | |
| runs-on: ubuntu-latest | |
| concurrency: | |
| group: pack-${{ github.ref }} | |
| cancel-in-progress: false | |
| permissions: {} | |
| outputs: | |
| files: ${{ steps.pack.outputs.files }} | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 | |
| with: | |
| persist-credentials: false | |
| - run: corepack enable | |
| - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: 24 | |
| cache: pnpm | |
| # The repo's `postinstall` runs `scripts/generate-data.ts` to write | |
| # `packages/nuxi/src/data/*.ts` that the build then bundles. uppt's | |
| # default install path uses `--ignore-scripts`, which would skip it | |
| # and produce a stale or broken nuxi tarball, so we install ourselves | |
| # and pass `install: false` to uppt/pack. | |
| - name: 📦 Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - id: pack | |
| uses: danielroe/uppt/pack@7bcfb5397c37202ef882363f755423130419d28a # v0.5.5 | |
| with: | |
| checkout: false | |
| install: false | |
| packages: | | |
| packages/create-nuxt | |
| packages/nuxi | |
| packages/nuxt-cli | |
| publish: | |
| if: | | |
| github.event_name == 'workflow_dispatch' | |
| && startsWith(github.ref, 'refs/tags/v') | |
| && needs.pack.outputs.files != '[]' | |
| needs: pack | |
| runs-on: ubuntu-latest | |
| concurrency: | |
| group: publish-${{ github.ref }} | |
| cancel-in-progress: false | |
| permissions: | |
| id-token: write | |
| environment: npm | |
| steps: | |
| - uses: danielroe/uppt/publish@7bcfb5397c37202ef882363f755423130419d28a # v0.5.5 | |
| with: | |
| files: ${{ needs.pack.outputs.files }} |