Skip to content

Commit

Permalink
chore: Upgrade node and pnpm versions
Browse files Browse the repository at this point in the history
  • Loading branch information
javierbrea committed Jun 11, 2023
1 parent 6d69923 commit 9aa4449
Show file tree
Hide file tree
Showing 6 changed files with 3,208 additions and 3,486 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/affected-projects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '16.x'
node-version: '18.x'
cache: 'pnpm'
- name: Get pnpm store directory
id: pnpm-cache
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: build
env:
NODE_CURRENT_VERSION: "16.15.0"
NODE_CURRENT_VERSION: "18.16.0"
on:
push:
branches:
Expand All @@ -26,11 +26,11 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: "6.x"
version: "8.x"
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "16.x"
node-version: "18.x"
cache: 'pnpm'
- name: Get pnpm store directory
id: pnpm-cache
Expand Down Expand Up @@ -69,11 +69,11 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: "6.x"
version: "8.x"
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "16.x"
node-version: "18.x"
cache: 'pnpm'
- name: Get pnpm store directory
id: pnpm-cache
Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:
strategy:
max-parallel: 2
matrix:
node: ["16.15.0"]
node: ["18.16.0"]
projectName: ${{fromJson(needs.get-affected.outputs.test-unit)}}
env:
NODE: ${{ matrix.node }}
Expand All @@ -117,7 +117,7 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: "6.x"
version: "8.x"
- name: Use Node.js
uses: actions/setup-node@v3
with:
Expand Down Expand Up @@ -214,15 +214,15 @@ jobs:
strategy:
max-parallel: 4
matrix:
node: ["14.19.3","16.15.0","17.9.0", "18.2.0"]
node: ["18.16.0", "20.0.0"]
projectName: ${{fromJson(needs.get-affected.outputs.test-e2e)}}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: "6.x"
version: "8.x"
- name: Use Node.js
uses: actions/setup-node@v3
with:
Expand All @@ -244,25 +244,25 @@ jobs:
- name: Set env vars
run: |
echo "NODE_OPTIONS=--openssl-legacy-provider" >> $GITHUB_ENV
if: ${{ matrix.node == '18.2.0' || matrix.node == '17.9.0' }}
if: ${{ matrix.node == '18.16.0' || matrix.node == '20.0.0' }}
- name: Test E2E
run: pnpm run nx run-many -- --target test:e2e --projects ${{ matrix.projectName }}
- name: Unset env vars
if: always() && ${{ matrix.node == '18.2.0' || matrix.node == '17.9.0' }}
if: always() && ${{ matrix.node == '18.16.0' || matrix.node == '20.0.0' }}
run: |
echo "NODE_OPTIONS=" >> $GITHUB_ENV
install-windows:
runs-on: windows-2019
strategy:
matrix:
node: ["16.15.0"]
node: ["18.16.0"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: "6.x"
version: "8.x"
- name: Use Node.js
uses: actions/setup-node@v3
with:
Expand Down Expand Up @@ -291,15 +291,15 @@ jobs:
strategy:
max-parallel: 2
matrix:
node: ["16.15.0"]
node: ["18.16.0"]
projectName: ${{fromJson(needs.get-affected.outputs.test-e2e)}}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: "6.x"
version: "8.x"
- name: Use Node.js
uses: actions/setup-node@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check-affected.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: 6.15.1
version: "8.x"
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '16.x'
node-version: '18.x'
cache: 'pnpm'
- name: Get pnpm store directory
id: pnpm-cache
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-to-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: "6.x"
version: "8.x"
- uses: actions/setup-node@v3
with:
node-version: '16.x'
node-version: '18.x'
registry-url: 'https://npm.pkg.github.com'
cache: 'pnpm'
- run: pnpm install
- run: pnpm run build:all
- uses: actions/setup-node@v3
with:
node-version: '16.x'
node-version: '18.x'
registry-url: 'https://npm.pkg.github.com'
# Defaults to the user or organization that owns the workflow file
scope: '@mocks-server'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-to-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: "6.x"
version: "8.x"
- uses: actions/setup-node@v3
with:
node-version: '16.x'
node-version: '18.x'
registry-url: 'https://registry.npmjs.org/'
cache: 'pnpm'
- run: pnpm install
Expand Down
Loading

0 comments on commit 9aa4449

Please sign in to comment.