Repository navigation
chore(deps): update dependency nuxt to v5.0.0-29850714.87a4b2c4 #858
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] | |
| # merged release PRs, publish reruns, and prereleases all arrive here | |
| workflow_dispatch: | |
| inputs: | |
| prerelease: | |
| description: 'Cut a prerelease instead of a normal release, e.g. `beta`, `rc`, or `0`' | |
| required: false | |
| default: '' | |
| permissions: {} | |
| jobs: | |
| # open or update a draft release PR from conventional commits | |
| pr: | |
| if: | | |
| !github.event.repository.fork | |
| && ( | |
| ( | |
| github.event_name == 'push' | |
| && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) | |
| ) || ( | |
| github.event_name == 'workflow_dispatch' | |
| && !startsWith(github.ref, 'refs/tags/') | |
| ) | |
| ) | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - uses: danielroe/uppt/pr@6ec27140623aa835e362f866d8ab0018ab057f4d # v0.6.11 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| prerelease: ${{ inputs.prerelease }} | |
| packages: | | |
| packages/create-nuxt | |
| packages/nuxi | |
| packages/nuxt-cli | |
| # release PR merged: tag it, cut a GitHub release, dispatch the publish run | |
| 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 | |
| && !github.event.repository.fork | |
| 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@6ec27140623aa835e362f866d8ab0018ab057f4d # v0.6.11 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| packages: | | |
| packages/create-nuxt | |
| packages/nuxi | |
| packages/nuxt-cli | |
| # the chained dispatch lands here on the vX.Y.Z tag; build the tarball(s) | |
| 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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| with: | |
| persist-credentials: false | |
| - uses: pnpm/setup@fbda4c85fc2e1e08721cd8763afea8f48d60f024 # v3.0.0 | |
| with: | |
| cache: true | |
| install: false | |
| - name: 📦 Install dependencies | |
| run: pnpm install --frozen-lockfile --ignore-scripts --no-runtime | |
| - name: 🔨 Generate data and build | |
| run: pnpm run postinstall | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - id: pack | |
| uses: danielroe/uppt/pack@6ec27140623aa835e362f866d8ab0018ab057f4d # v0.6.11 | |
| 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@6ec27140623aa835e362f866d8ab0018ab057f4d # v0.6.11 | |
| with: | |
| files: ${{ needs.pack.outputs.files }} |