From 9e638d1f730df29d355542b36f907dc00955bbd3 Mon Sep 17 00:00:00 2001 From: Farnabaz Date: Wed, 8 Jan 2025 16:45:20 +0100 Subject: [PATCH] ci: use pkg-pr-new --- .github/workflows/ci.yml | 39 ++++++++++++--------------------------- 1 file changed, 12 insertions(+), 27 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 264a7c1..de15663 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,36 +1,21 @@ -name: Publish nuxt-component-meta (Nightly) +name: ci on: push: branches: - main + pull_request: + branches: + - main jobs: nightly: - strategy: - matrix: - os: [ubuntu-latest] - node: [20] - - runs-on: ${{ matrix.os }} - permissions: - id-token: write + runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 # v4 - - name: Add pnpm - run: corepack enable + - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 20 - registry-url: "https://registry.npmjs.org/" - cache: "pnpm" - - name: Install dependencies - run: pnpm install - - name: Prepare - run: pnpm dev:prepare - - name: Test - run: pnpm test - - name: Release Nightly - run: pnpm changelogen --bump --canary --publish --publishTag nightly - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} - NPM_CONFIG_PROVENANCE: true + node-version: '20' + - run: corepack enable + - run: pnpm install + - run: pnpm dev:prepare + - run: pnpm test + - run: pnpx pkg-pr-new publish --compact --no-template --pnpm