Skip to content

Commit

Permalink
ci: fix ci node and pnpm actions
Browse files Browse the repository at this point in the history
  • Loading branch information
chmanie committed Oct 29, 2024
1 parent d1935ec commit 658ad2d
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 7 deletions.
51 changes: 45 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,22 @@ jobs:
fetch-depth: 0
submodules: true

- uses: actions/setup-node@v3
- uses: pnpm/action-setup@v4
with:
node-version: 16
version: 9.12.1

- name: Setup node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'pnpm'

- name: Cache NPM dependencies
uses: actions/cache@v4
id: cache
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('pnpm-lock.yaml') }}

- name: Install ⚙️
run: pnpm install --frozen-lockfile
Expand All @@ -40,9 +53,22 @@ jobs:
fetch-depth: 0
submodules: true

- uses: actions/setup-node@v3
- uses: pnpm/action-setup@v4
with:
version: 9.12.1

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
node-version-file: '.nvmrc'
cache: 'pnpm'

- name: Cache NPM dependencies
uses: actions/cache@v4
id: cache
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('pnpm-lock.yaml') }}

- name: Install ⚙️
run: pnpm install --frozen-lockfile
Expand Down Expand Up @@ -70,9 +96,22 @@ jobs:
fetch-depth: 0
submodules: true

- uses: actions/setup-node@v3
- uses: pnpm/action-setup@v4
with:
version: 9.12.1

- name: Setup node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'pnpm'

- name: Cache NPM dependencies
uses: actions/cache@v4
id: cache
with:
node-version: 16
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('pnpm-lock.yaml') }}

- name: Install Docusaurus ⚙️
run: pnpm install --frozen-lockfile
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.11
20.12.2

0 comments on commit 658ad2d

Please sign in to comment.