Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ jobs:
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: latest
- run: npm ci
- run: npm run format:check
- run: npm run lint
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0
- run: pnpm install
- run: pnpm format:check
- run: pnpm lint
build:
name: Build ${{ matrix.node-version }} @ ${{ matrix.os }}

Expand All @@ -37,5 +38,6 @@ jobs:
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run test
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0
- run: pnpm install
- run: pnpm test
13 changes: 7 additions & 6 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ jobs:
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: 22
- run: npm ci
- run: npm run lint
- run: npm test
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0
- run: pnpm install
- run: pnpm lint
- run: pnpm test

publish-npm:
needs: build
Expand All @@ -28,13 +29,13 @@ jobs:
with:
node-version: 22.x
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0
- run: npm install -g npm@latest
- run: npm ci
- run: pnpm install
- run: npm version ${TAG_NAME} --git-tag-version=false
env:
TAG_NAME: ${{ github.ref_name }}
- run: npm publish --access public --tag next
if: github.event.release.prerelease
- run: npm publish --access public
if: "!github.event.release.prerelease"
if: '!github.event.release.prerelease'
Loading