chore(deps): update pnpm to v10 #1919
Workflow file for this run
This file contains 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: ci | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
fetch-depth: 0 | |
- run: npm i -g --force corepack && corepack enable | |
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0 | |
with: | |
node-version: lts/* | |
cache: pnpm | |
- name: π¦ Install dependencies | |
run: pnpm install | |
- name: π Lint project | |
run: pnpm lint | |
- name: βοΈ Knip project | |
run: pnpm test:knip | |
# - name: βοΈ Check package engines | |
# run: pnpm test:engines | |
ci: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
fetch-depth: 0 | |
- run: npm i -g --force corepack && corepack enable | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: pnpm | |
- name: π¦ Install dependencies | |
run: pnpm install | |
- name: πͺ Test types | |
run: pnpm test:types | |
- name: π Build project | |
run: pnpm build | |
- name: π§ͺ Test built `nuxi` | |
run: pnpm test:dist | |
- name: π§ͺ Test (unit) | |
run: pnpm test:unit | |
- if: matrix.os != 'windows-latest' | |
uses: codecov/codecov-action@v5 | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
if: github.repository_owner == 'nuxt' | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
fetch-depth: 0 | |
- run: npm i -g --force corepack && corepack enable | |
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0 | |
with: | |
node-version: lts/* | |
cache: pnpm | |
- name: π¦ Install dependencies | |
run: pnpm install | |
- name: π Build project | |
run: pnpm build | |
- name: π¦ release pkg.pr.new | |
if: github.event_name != 'push' | |
run: pnpm pkg-pr-new publish --compact --template './playground' ./packages/create-nuxt-app ./packages/nuxi ./packages/nuxt-cli | |
- name: π¦ release nightly | |
if: github.event_name == 'push' | |
run: | | |
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc && | |
node ./scripts/release.mjs | |
env: | |
RELEASE_TYPE: nightly | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
NPM_CONFIG_PROVENANCE: true |