1
0
mirror of https://github.com/bitwarden/directory-connector synced 2025-12-31 15:43:44 +00:00

Bump node to 14 (#116)

* Bump node to 14

* Add engines

* Bump dependencies

* Change engine to ~14.

* Bump jslib
This commit is contained in:
Oscar Hinton
2021-05-12 22:38:32 +02:00
committed by GitHub
parent f6b249836e
commit a0f33c7bdc
6 changed files with 762 additions and 787 deletions

View File

@@ -56,26 +56,26 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: '10.x'
node-version: '14.x'
- name: Setting WIN_PKG
run: |
echo "WIN_PKG=$env:WIN_PKG" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "version: $env:pkgVersion"
env:
WIN_PKG: C:\Users\runneradmin\.pkg-cache\v2.6\fetched-v10.21.0-win-x64
WIN_PKG: C:\Users\runneradmin\.pkg-cache\v3.0\fetched-v14.16.1-win-x64
- name: get pkg-fetch
shell: pwsh
run: |
cd $HOME
$fetchedUrl = "https://github.com/vercel/pkg-fetch/releases/download/v2.6/uploaded-v2.6-node-v10.21.0-win-x64"
$fetchedUrl = "https://github.com/vercel/pkg-fetch/releases/download/v3.0/node-v14.16.1-win-x64"
New-Item -ItemType directory -Path ./.pkg-cache
New-Item -ItemType directory -Path ./.pkg-cache/v2.6
Invoke-RestMethod -Uri $fetchedUrl -OutFile "./.pkg-cache/v2.6/fetched-v10.21.0-win-x64"
New-Item -ItemType directory -Path ./.pkg-cache/v3.0
Invoke-RestMethod -Uri $fetchedUrl -OutFile "./.pkg-cache/v3.0/fetched-v14.16.1-win-x64"
env:
WIN_PKG: C:\Users\runneradmin\.pkg-cache\v2.6\fetched-v10.21.0-win-x64
WIN_PKG: C:\Users\runneradmin\.pkg-cache\v3.0\fetched-v14.16.1-win-x64
- name: Keytar
shell: pwsh
@@ -203,7 +203,7 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: '10.x'
node-version: '14.x'
- name: Set Node options
run: echo "NODE_OPTIONS=--max_old_space_size=4096" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
@@ -281,7 +281,7 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: '10.x'
node-version: '14.x'
- name: Set Node options
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
@@ -321,7 +321,7 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: '10.x'
node-version: '14.x'
- name: Set Node options
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV

View File

@@ -71,25 +71,25 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: '10.x'
node-version: '14.x'
- name: Set VER_INFO
run: |
echo "WIN_PKG=$env:WIN_PKG" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
env:
WIN_PKG: C:\Users\runneradmin\.pkg-cache\v2.6\fetched-v10.21.0-win-x64
WIN_PKG: C:\Users\runneradmin\.pkg-cache\v3.0\fetched-v14.16.1-win-x64
- name: get pkg-fetch
shell: pwsh
run: |
cd $HOME
$fetchedUrl = "https://github.com/vercel/pkg-fetch/releases/download/v2.6/uploaded-v2.6-node-v10.21.0-win-x64"
$fetchedUrl = "https://github.com/vercel/pkg-fetch/releases/download/v3.0/node-v14.16.1-win-x64"
New-Item -ItemType directory -Path ./.pkg-cache
New-Item -ItemType directory -Path ./.pkg-cache/v2.6
Invoke-RestMethod -Uri $fetchedUrl -OutFile "./.pkg-cache/v2.6/fetched-v10.21.0-win-x64"
New-Item -ItemType directory -Path ./.pkg-cache/v3.0
Invoke-RestMethod -Uri $fetchedUrl -OutFile "./.pkg-cache/v3.0/fetched-v14.16.1-win-x64"
env:
WIN_PKG: C:\Users\runneradmin\.pkg-cache\v2.6\fetched-v10.21.0-win-x64
WIN_PKG: C:\Users\runneradmin\.pkg-cache\v3.0\fetched-v14.16.1-win-x64
- name: Keytar
shell: pwsh
@@ -235,7 +235,7 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: '10.x'
node-version: '14.x'
- name: Set Node options
run: echo "NODE_OPTIONS=--max_old_space_size=4096" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
@@ -299,7 +299,7 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: '10.x'
node-version: '14.x'
- name: Set Node options
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
@@ -341,7 +341,7 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: '10.x'
node-version: '14.x'
- name: Set Node options
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV