1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

Bump node to v16 (#1189)

* Pull in jslib

* Update .nvmrc

* Bump engines required to node 16 and npm 8

* Bump @types/node to 16
The dep on node 14.18 will get cleaned up once we bump electron

* Modify build.yml to build with node 16 and npm 8

* Update requirements in README.md

* Removed install of npm8 and renamed action step
npm8 is included in node v16

* Pull jslib
This commit is contained in:
Daniel James Smith
2021-12-13 17:16:44 +01:00
committed by GitHub
parent 74c9c1972f
commit 5865f08b37
6 changed files with 46 additions and 38 deletions

View File

@@ -93,7 +93,7 @@ jobs:
- name: Set up Node
uses: actions/setup-node@46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea # v2.1.5
with:
node-version: '14'
node-version: '16'
- name: Cache npm
id: npm-cache
@@ -105,9 +105,8 @@ jobs:
- name: Set Node options
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
- name: Update NPM
- name: Install node-gyp
run: |
npm install -g npm@7
npm install -g node-gyp
node-gyp install $(node -v)
@@ -192,7 +191,7 @@ jobs:
- name: Set up Node
uses: actions/setup-node@46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea # v2.1.5
with:
node-version: '14'
node-version: '16'
- name: Cache npm
id: npm-cache
@@ -205,9 +204,8 @@ jobs:
run: echo "NODE_OPTIONS=--max_old_space_size=4096" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
shell: pwsh
- name: Update NPM
- name: Install node-gyp
run: |
npm install -g npm@7
npm install -g node-gyp
node-gyp install $(node -v)
@@ -369,7 +367,7 @@ jobs:
- name: Set up Node
uses: actions/setup-node@46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea # v2.1.5
with:
node-version: '14'
node-version: '16'
- name: Cache npm
id: npm-cache
@@ -381,9 +379,8 @@ jobs:
- name: Set Node options
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
- name: Update NPM
- name: Install node-gyp
run: |
npm install -g npm@7
npm install -g node-gyp
node-gyp install $(node -v)
@@ -517,7 +514,7 @@ jobs:
- name: Set up Node
uses: actions/setup-node@46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea # v2.1.5
with:
node-version: '14'
node-version: '16'
- name: Cache npm
id: npm-cache
@@ -529,9 +526,8 @@ jobs:
- name: Set Node options
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
- name: Update NPM
- name: Install node-gyp
run: |
npm install -g npm@7
npm install -g node-gyp
node-gyp install $(node -v)
@@ -705,7 +701,7 @@ jobs:
- name: Set up Node
uses: actions/setup-node@46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea # v2.1.5
with:
node-version: '14'
node-version: '16'
- name: Cache npm
id: npm-cache
@@ -717,9 +713,8 @@ jobs:
- name: Set Node options
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
- name: Update NPM
- name: Install node-gyp
run: |
npm install -g npm@7
npm install -g node-gyp
node-gyp install $(node -v)
@@ -885,7 +880,7 @@ jobs:
- name: Set up Node
uses: actions/setup-node@46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea # v2.1.5
with:
node-version: '14'
node-version: '16'
- name: Cache npm
id: npm-cache
@@ -897,9 +892,8 @@ jobs:
- name: Set Node options
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
- name: Update NPM
- name: Install node-gyp
run: |
npm install -g npm@7
npm install -g node-gyp
node-gyp install $(node -v)