Skip to content

Commit

Permalink
chore: enable corepack in CI jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonroberts committed Jan 11, 2025
1 parent be56ead commit 63ea347
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
node-version-file: .node-version
cache: 'pnpm'
cache-dependency-path: 'pnpm-lock.yaml'
- run: corepack enable
- run: pnpm exec --frozen-lockfile --non-interactive

lint-affected:
Expand All @@ -37,6 +38,7 @@ jobs:
node-version-file: .node-version
cache: 'pnpm'
cache-dependency-path: 'pnpm-lock.yaml'
- run: corepack enable
- run: pnpm exec --frozen-lockfile --non-interactive
- uses: nrwl/nx-set-shas@v4
- run: pnpm exec nx affected -t lint
Expand All @@ -48,6 +50,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version-file: .node-version
Expand All @@ -69,6 +72,7 @@ jobs:
node-version-file: .node-version
cache: 'pnpm'
cache-dependency-path: 'pnpm-lock.yaml'
- run: corepack enable
- run: pnpm exec --frozen-lockfile --non-interactive
- uses: nrwl/nx-set-shas@v4
- run: pnpm exec nx affected -t e2e --exclude=docs-app
Expand All @@ -85,6 +89,7 @@ jobs:
node-version-file: .node-version
cache: 'pnpm'
cache-dependency-path: 'pnpm-lock.yaml'
- run: corepack enable
- run: pnpm exec --frozen-lockfile --non-interactive
- uses: nrwl/nx-set-shas@v4
- run: pnpm exec nx affected -t build
Expand All @@ -101,6 +106,7 @@ jobs:
node-version-file: .node-version
cache: 'pnpm'
cache-dependency-path: 'pnpm-lock.yaml'
- run: corepack enable
- run: pnpm exec --frozen-lockfile --non-interactive
- uses: nrwl/nx-set-shas@v4
- run: pnpm exec copy:schematics
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
node-version-file: .node-version
cache: 'pnpm'
cache-dependency-path: 'pnpm-lock.yaml'
- run: corepack enable
- run: pnpm exec --frozen-lockfile --non-interactive

lint:
Expand All @@ -39,6 +40,7 @@ jobs:
node-version-file: .node-version
cache: 'pnpm'
cache-dependency-path: 'pnpm-lock.yaml'
- run: corepack enable
- run: pnpm exec --frozen-lockfile --non-interactive
- uses: nrwl/nx-set-shas@v4
- run: pnpm exec nx run-many -t lint
Expand All @@ -55,6 +57,7 @@ jobs:
node-version-file: .node-version
cache: 'pnpm'
cache-dependency-path: 'pnpm-lock.yaml'
- run: corepack enable
- run: pnpm exec --frozen-lockfile --non-interactive
- uses: nrwl/nx-set-shas@v4
- run: pnpm exec nx run-many -t test
Expand All @@ -71,6 +74,7 @@ jobs:
node-version-file: .node-version
cache: 'pnpm'
cache-dependency-path: 'pnpm-lock.yaml'
- run: corepack enable
- run: pnpm exec --frozen-lockfile --non-interactive
- uses: nrwl/nx-set-shas@v4
- run: pnpm exec nx run-many -t e2e --exclude=docs-app
Expand All @@ -87,6 +91,7 @@ jobs:
node-version-file: .node-version
cache: 'pnpm'
cache-dependency-path: 'pnpm-lock.yaml'
- run: corepack enable
- run: pnpm exec --frozen-lockfile --non-interactive
- uses: nrwl/nx-set-shas@v4
- run: pnpm exec build
Expand All @@ -103,6 +108,7 @@ jobs:
node-version-file: .node-version
cache: 'pnpm'
cache-dependency-path: 'pnpm-lock.yaml'
- run: corepack enable
- run: pnpm exec --frozen-lockfile --non-interactive
- uses: nrwl/nx-set-shas@v4
- run: pnpm exec copy:schematics
Expand Down

0 comments on commit 63ea347

Please sign in to comment.