Skip to content

Commit

Permalink
install pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
SkidGod4444 committed Nov 25, 2024
1 parent 300a5fc commit 0a8d832
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 61 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/deploy-triggers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,20 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4

- name: Use Node.js 20.x
uses: actions/setup-node@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
node-version: "20.x"
version: 9
run_install: false

- name: Install pnpm
run: npm install -g pnpm

- name: Set up pnpm environment
run: |
pnpm setup
export PATH=$(pnpm env get-path):$PATH
shell: bash
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '21.7.1'
cache: 'pnpm'

- name: Install dependencies
run: pnpm install
Expand Down
24 changes: 11 additions & 13 deletions .github/workflows/format-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,20 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v2
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
node-version: '20.x'

- name: Install pnpm
run: npm install -g pnpm
version: 9
run_install: false

- name: Set up pnpm environment
run: |
pnpm setup
export PATH=$(pnpm env get-path):$PATH
shell: bash
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '21.7.1'
cache: 'pnpm'

- name: Cache pnpm modules
uses: actions/cache@v3
Expand Down
47 changes: 26 additions & 21 deletions .github/workflows/lint-and-typecheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,21 @@ jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: false

- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: '21.7.1'

- name: Install pnpm
run: npm install -g pnpm

- name: Set up pnpm environment
run: |
pnpm setup
export PATH=$(pnpm env get-path):$PATH
shell: bash

- name: Install turbo
run: pnpm install -g turbo

cache: 'pnpm'

- name: Cache pnpm modules
uses: actions/cache@v3
with:
Expand All @@ -45,20 +40,30 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: Install turbo
run: pnpm install -g turbo

lint:
runs-on: ubuntu-latest
needs: setup
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: false

- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: '21.7.1'
cache: 'pnpm'

- name: Use pnpm & turbo from setup
run: pnpm --version && turbo --version
- name: Install dependencies
run: pnpm install

- name: Run Lint
run: pnpm lint
Expand Down
28 changes: 13 additions & 15 deletions .github/workflows/test-multiple-node-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,20 @@ jobs:
node-version: [20.18.0, 18.20.4, 22.11.0, 19.9.0, 23.1.0] # Ensure all versions are >= v18

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: false

- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: Set environment variables
run: |
Expand All @@ -42,18 +49,6 @@ jobs:
echo "RESEND_API=${{ secrets.RESEND_API }}" >> apps/api/.env
cat apps/api/.env # Verify .env contents
- name: Install pnpm
run: npm install -g pnpm

- name: Set up pnpm environment
run: |
pnpm setup
export PATH=$(pnpm env get-path):$PATH
shell: bash

- name: Install trubo
run: pnpm install -g turbo

- name: Cache pnpm modules
uses: actions/cache@v3
with:
Expand All @@ -65,5 +60,8 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: Install trubo
run: pnpm install -g turbo

- name: Run Turbo tests
run: turbo test

0 comments on commit 0a8d832

Please sign in to comment.