Skip to content

Commit

Permalink
chore: fix CI (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
christianhg authored Feb 6, 2025
1 parent 7f27a2f commit ff36982
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/format-if-needed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
cache: 'pnpm'
node-version: lts/*
- run: corepack enable && pnpm --version
- run: pnpm install --ignore-scripts
- run: pnpm format
- run: git restore .github/workflows CHANGELOG.md
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ jobs:
name: Lint & Build
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
cache: pnpm
node-version: lts/*
- run: corepack enable && pnpm --version
- run: pnpm install
- run: pnpm type-check
- run: pnpm lint
Expand All @@ -44,9 +45,10 @@ jobs:
node-version: current
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
cache: pnpm
node-version: ${{ matrix.node-version }}
- run: corepack enable && pnpm --version
- run: pnpm install
- run: pnpm test
4 changes: 2 additions & 2 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ jobs:
# Publish to NPM on new releases
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.releases_created }}
- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v4
if: ${{ steps.release.outputs.releases_created }}
- uses: actions/setup-node@v4
if: ${{ steps.release.outputs.releases_created }}
with:
cache: pnpm
node-version: lts/*
registry-url: 'https://registry.npmjs.org'
- run: corepack enable && pnpm --version && pnpm install --ignore-scripts
- run: pnpm install --ignore-scripts
if: ${{ steps.release.outputs.releases_created }}
- name: Set publishing config
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
Expand Down

0 comments on commit ff36982

Please sign in to comment.