Skip to content

Commit

Permalink
ci: use pkg-pr-new
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Jan 8, 2025
1 parent a6efba4 commit 9e638d1
Showing 1 changed file with 12 additions and 27 deletions.
39 changes: 12 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9e638d1

Please sign in to comment.