Skip to content

Commit

Permalink
chore: switch to pnpm (#622)
Browse files Browse the repository at this point in the history
* chore: switch to pnpm

* chore: switch to pnpm

* wip

* wip

* wip

* wip

* wip

* wip
  • Loading branch information
gajus committed Jun 11, 2024
1 parent 24cca29 commit 6ffc7d6
Show file tree
Hide file tree
Showing 5 changed files with 9,147 additions and 14,794 deletions.
36 changes: 24 additions & 12 deletions .github/workflows/feature.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@ jobs:
- name: setup node.js
uses: actions/setup-node@v4
with:
cache: 'npm'
node-version: '20'
- run: npm ci
- run: npm run build --workspaces --if-present
- uses: pnpm/action-setup@v4
name: install pnpm
with:
version: 8
run_install: |
- recursive: true
- run: pnpm run -r build
timeout-minutes: 10
lint:
environment: release
Expand All @@ -28,12 +32,16 @@ jobs:
- name: setup node.js
uses: actions/setup-node@v4
with:
cache: 'npm'
node-version: '20'
- run: npm ci
- run: npm run build --workspaces --if-present
- run: npm run lint
- run: npm run lint --workspaces --if-present
- uses: pnpm/action-setup@v4
name: install pnpm
with:
version: 8
run_install: |
- recursive: true
- run: pnpm run -r build
- run: pnpm run lint
- run: pnpm run -r lint
timeout-minutes: 10
test:
environment: release
Expand Down Expand Up @@ -75,14 +83,18 @@ jobs:
- name: setup node.js
uses: actions/setup-node@v4
with:
cache: 'npm'
node-version: '${{ matrix.node_version }}'
- run: npm ci
- run: npm run build --workspaces --if-present
- uses: pnpm/action-setup@v4
name: install pnpm
with:
version: 8
run_install: |
- recursive: true
- run: pnpm run -r build
- env:
POSTGRES_DSN: 'postgres://postgres:postgres@localhost:5432'
TEST_ONLY: '${{ matrix.test_only }}'
run: npm run test --workspaces --if-present
run: pnpm run -r test
strategy:
fail-fast: false
matrix:
Expand Down
29 changes: 18 additions & 11 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ jobs:
- name: setup node.js
uses: actions/setup-node@v4
with:
cache: 'npm'
node-version: '20'
- run: npm ci
- run: npm run build --workspaces --if-present
- run: npm run lint --workspaces --if-present
- run: pnpm install
- run: pnpm run -r build
- run: pnpm run -r lint
timeout-minutes: 10
release:
environment: release
Expand All @@ -32,10 +31,14 @@ jobs:
- name: setup node.js
uses: actions/setup-node@v4
with:
cache: 'npm'
node-version: '20'
- run: npm ci
- run: npm run build --workspaces --if-present
- uses: pnpm/action-setup@v4
name: install pnpm
with:
version: 8
run_install: |
- recursive: true
- run: pnpm run -r build
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down Expand Up @@ -83,14 +86,18 @@ jobs:
- name: setup node.js
uses: actions/setup-node@v4
with:
cache: 'npm'
node-version: '${{ matrix.node_version }}'
- run: npm ci
- run: npm run build --workspaces --if-present
- uses: pnpm/action-setup@v4
name: install pnpm
with:
version: 8
run_install: |
- recursive: true
- run: pnpm run -r build
- env:
POSTGRES_DSN: 'postgres://postgres:postgres@localhost:5432'
TEST_ONLY: '${{ matrix.test_only }}'
run: npm run test --workspaces --if-present
run: pnpm run -r test
strategy:
fail-fast: false
matrix:
Expand Down
Loading

0 comments on commit 6ffc7d6

Please sign in to comment.