Skip to content

Commit

Permalink
Merge pull request #64 from developmentseed/enhance/upgrade-nodejs
Browse files Browse the repository at this point in the history
Upgrade Node.js to v18
  • Loading branch information
vgeorge authored Jan 2, 2024
2 parents d963102 + 7bcad12 commit 2e5d60b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 19 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Use Node.js 14
- name: Use Node.js 18
uses: actions/setup-node@v1
with:
node-version: 14
node-version: 18

- name: Cache node modules
id: cache-node-modules
Expand Down Expand Up @@ -60,10 +60,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Use Node.js 14
- name: Use Node.js 18
uses: actions/setup-node@v1
with:
node-version: 14
node-version: 18

- name: Cache node modules
id: cache-node-modules
Expand Down Expand Up @@ -101,10 +101,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Use Node.js 14
- name: Use Node.js 18
uses: actions/setup-node@v1
with:
node-version: 14
node-version: 18

- name: Cache node modules
id: cache-node-modules
Expand Down
19 changes: 8 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ jobs:

- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js 14

- name: Use Node.js 18
uses: actions/setup-node@v1
with:
node-version: 14
node-version: 18

- name: Cache node modules
id: cache-node-modules
uses: actions/cache@v2
Expand All @@ -44,7 +44,7 @@ jobs:
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: yarn install
Expand All @@ -59,7 +59,7 @@ jobs:
- name: Build Prod
if: github.ref == 'refs/heads/main'
run: yarn build

- name: Azure Login
if: github.ref == 'refs/heads/develop'
uses: azure/login@v1
Expand All @@ -72,21 +72,19 @@ jobs:
with:
creds: ${{ secrets.AZURE_CREDENTIALS_PRODUCTION }}


- name: Upload to blob storage
if: github.ref == 'refs/heads/develop'
uses: azure/CLI@v1
with:
inlineScript: |
az storage blob upload-batch --account-name $STAGING_STORAGE_ACCOUNT_NAME --overwrite -d '$web' -s ./dist
az storage blob upload-batch --account-name $STAGING_STORAGE_ACCOUNT_NAME --overwrite -d '$web' -s ./dist
- name: Upload to blob storage
if: github.ref == 'refs/heads/main'
uses: azure/CLI@v1
with:
inlineScript: |
az storage blob upload-batch --account-name $PRODUCTION_STORAGE_ACCOUNT_NAME --overwrite -d '$web' -s ./dist
az storage blob upload-batch --account-name $PRODUCTION_STORAGE_ACCOUNT_NAME --overwrite -d '$web' -s ./dist
- name: Purge CDN endpoint
if: github.ref == 'refs/heads/develop'
Expand All @@ -102,6 +100,5 @@ jobs:
inlineScript: |
az cdn endpoint purge --content-paths "/*" --profile-name $PRODUCTION_CDN_PROFILE_NAME --name $PRODUCTION_CDN_ENDPOINT --resource-group $PRODUCTION_RESOURCE_GROUP
- name: Azure Logout
run: az logout
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14
18
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"cy:run": "NODE_ENV=cypress cypress run --e2e --browser electron"
},
"engines": {
"node": "14.x"
"node": "18.x"
},
"browserify": {
"transform": [
Expand Down

0 comments on commit 2e5d60b

Please sign in to comment.