Skip to content

chore(deps): update pnpm to v11.23.0 #657

chore(deps): update pnpm to v11.23.0

chore(deps): update pnpm to v11.23.0 #657

Workflow file for this run

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@775bb233d2c5671b2c12d48f822778aae8231376 # v0.6.7
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@775bb233d2c5671b2c12d48f822778aae8231376 # v0.6.7
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
- run: npm i -g --force corepack && corepack enable
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24.19.0
cache: pnpm
# The repo's `postinstall` runs `scripts/generate-data.ts` to write
# `packages/nuxt-cli/src/data/*.ts` that the build then bundles. uppt's
# default install path never runs it, which would produce a stale or
# broken nuxi tarball, so we install and build ourselves and pass
# `install: false` to uppt/pack.
- name: 📦 Install dependencies
run: pnpm install --frozen-lockfile --ignore-scripts
- name: 🔨 Generate data and build
run: pnpm run postinstall
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- id: pack
uses: danielroe/uppt/pack@775bb233d2c5671b2c12d48f822778aae8231376 # v0.6.7
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@775bb233d2c5671b2c12d48f822778aae8231376 # v0.6.7
with:
files: ${{ needs.pack.outputs.files }}