Update GitHub Actions to NodeJS 20 Versions, Improve Performance (#719)

[SKIP]
This commit is contained in:
Integer Limit 2024-04-10 09:44:22 +10:00 committed by GitHub
parent daa9508e3b
commit 7ba8aa8cfb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 65 additions and 51 deletions

View File

@ -96,7 +96,7 @@ jobs:
ref: ${{ inputs.tag }} ref: ${{ inputs.tag }}
- name: Restore Cached Files - name: Restore Cached Files
uses: actions/cache@v3 uses: actions/cache@v4
id: cache id: cache
with: with:
path: | path: |
@ -107,9 +107,9 @@ jobs:
restore-keys: ${{ runner.os }}-bunny- restore-keys: ${{ runner.os }}-bunny-
- name: Setup NodeJS v16 - name: Setup NodeJS v16
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: "16" node-version: 20
check-latest: true check-latest: true
- name: Setup NPM Packages - name: Setup NPM Packages
@ -136,13 +136,14 @@ jobs:
COMPARE_TAG: ${{ inputs.compare_tag }} COMPARE_TAG: ${{ inputs.compare_tag }}
- name: Upload All Files - name: Upload All Files
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: Built Pack name: Built Pack
path: | path: |
./build/*.zip ./build/*.zip
./build/*.md ./build/*.md
if-no-files-found: error if-no-files-found: error
compression-level: 0
makeNames: makeNames:
name: Make Artifact Names (${{ inputs.tag }}) name: Make Artifact Names (${{ inputs.tag }})
@ -166,7 +167,7 @@ jobs:
ref: ${{ inputs.tag }} ref: ${{ inputs.tag }}
- name: Restore Cached Files - name: Restore Cached Files
uses: actions/cache@v3 uses: actions/cache@v4
id: cache id: cache
with: with:
path: | path: |
@ -177,9 +178,9 @@ jobs:
restore-keys: ${{ runner.os }}-bunny- restore-keys: ${{ runner.os }}-bunny-
- name: Setup NodeJS v16 - name: Setup NodeJS v16
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: "16" node-version: 20
check-latest: true check-latest: true
- name: Setup NPM Packages - name: Setup NPM Packages
@ -218,7 +219,7 @@ jobs:
ref: ${{ inputs.tag }} ref: ${{ inputs.tag }}
- name: Restore Cached Files - name: Restore Cached Files
uses: actions/cache@v3 uses: actions/cache@v4
id: cache id: cache
with: with:
path: | path: |
@ -229,9 +230,9 @@ jobs:
restore-keys: ${{ runner.os }}-bunny- restore-keys: ${{ runner.os }}-bunny-
- name: Setup NodeJS v16 - name: Setup NodeJS v16
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: "16" node-version: 20
check-latest: true check-latest: true
- name: Setup NPM Packages - name: Setup NPM Packages
@ -258,11 +259,12 @@ jobs:
COMPARE_TAG: ${{ inputs.compare_tag }} COMPARE_TAG: ${{ inputs.compare_tag }}
- name: Upload Client Zip - name: Upload Client Zip
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: ${{ needs.makeNames.outputs.client }} name: ${{ needs.makeNames.outputs.client }}
path: ./build/client/**/* path: ./build/client/**/*
if-no-files-found: error if-no-files-found: error
compression-level: 9
buildServer: buildServer:
name: Build Pack Server (${{ inputs.tag }}) name: Build Pack Server (${{ inputs.tag }})
@ -282,7 +284,7 @@ jobs:
ref: ${{ inputs.tag }} ref: ${{ inputs.tag }}
- name: Restore Cached Files - name: Restore Cached Files
uses: actions/cache@v3 uses: actions/cache@v4
id: cache id: cache
with: with:
path: | path: |
@ -293,9 +295,9 @@ jobs:
restore-keys: ${{ runner.os }}-bunny- restore-keys: ${{ runner.os }}-bunny-
- name: Setup NodeJS v16 - name: Setup NodeJS v16
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: "16" node-version: 20
check-latest: true check-latest: true
- name: Setup NPM Packages - name: Setup NPM Packages
@ -322,11 +324,12 @@ jobs:
COMPARE_TAG: ${{ inputs.compare_tag }} COMPARE_TAG: ${{ inputs.compare_tag }}
- name: Upload Server Zip - name: Upload Server Zip
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: ${{ needs.makeNames.outputs.server }} name: ${{ needs.makeNames.outputs.server }}
path: ./build/server/**/* path: ./build/server/**/*
if-no-files-found: error if-no-files-found: error
compression-level: 9
buildLang: buildLang:
name: Build Pack Lang and Changelogs (${{ inputs.tag }}) name: Build Pack Lang and Changelogs (${{ inputs.tag }})
@ -346,7 +349,7 @@ jobs:
ref: ${{ inputs.tag }} ref: ${{ inputs.tag }}
- name: Restore Cached Files - name: Restore Cached Files
uses: actions/cache@v3 uses: actions/cache@v4
id: cache id: cache
with: with:
path: | path: |
@ -357,9 +360,9 @@ jobs:
restore-keys: ${{ runner.os }}-bunny- restore-keys: ${{ runner.os }}-bunny-
- name: Setup NodeJS v16 - name: Setup NodeJS v16
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: "16" node-version: 20
check-latest: true check-latest: true
- name: Setup NPM Packages - name: Setup NPM Packages
@ -386,15 +389,17 @@ jobs:
COMPARE_TAG: ${{ inputs.compare_tag }} COMPARE_TAG: ${{ inputs.compare_tag }}
- name: Upload Lang Zip - name: Upload Lang Zip
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: ${{ needs.makeNames.outputs.lang }} name: ${{ needs.makeNames.outputs.lang }}
path: ./build/lang/**/* path: ./build/lang/**/*
if-no-files-found: error if-no-files-found: error
compression-level: 9
- name: Upload Changelogs - name: Upload Changelogs
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: Changelogs name: Changelogs
path: ./build/*.md path: ./build/*.md
if-no-files-found: error if-no-files-found: error
compression-level: 9

View File

@ -62,11 +62,12 @@ jobs:
steps: steps:
- name: Get Token - name: Get Token
id: token id: token
uses: peter-murray/workflow-application-token-action@v2.1.0 uses: peter-murray/workflow-application-token-action@v3
with: with:
application_id: ${{ secrets.APP_ID }} application_id: ${{ secrets.APP_ID }}
application_private_key: ${{ secrets.APP_KEY }} application_private_key: ${{ secrets.APP_KEY }}
organization: Nomi-CEu organization: Nomi-CEu
revoke_token: true
- name: Checkout Repo - name: Checkout Repo
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -76,7 +77,7 @@ jobs:
token: ${{ steps.token.outputs.token }} token: ${{ steps.token.outputs.token }}
- name: Restore Cached Files - name: Restore Cached Files
uses: actions/cache@v3 uses: actions/cache@v4
id: cache id: cache
with: with:
path: | path: |
@ -87,9 +88,9 @@ jobs:
restore-keys: ${{ runner.os }}-bunny- restore-keys: ${{ runner.os }}-bunny-
- name: Setup NodeJS v16 - name: Setup NodeJS v16
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: "16" node-version: 20
check-latest: true check-latest: true
- name: Setup NPM Packages - name: Setup NPM Packages
@ -118,11 +119,12 @@ jobs:
create_branch: true create_branch: true
- name: Upload Changelog - name: Upload Changelog
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: Changelogs name: Changelogs
path: | path: |
./CHANGELOG.md ./CHANGELOG.md
./CHANGELOG_CF.md ./CHANGELOG_CF.md
if-no-files-found: error if-no-files-found: error
compression-level: 9

View File

@ -26,7 +26,7 @@ jobs:
ref: ${{ inputs.tag }} ref: ${{ inputs.tag }}
- name: Restore Cached Files - name: Restore Cached Files
uses: actions/cache@v3 uses: actions/cache@v4
id: cache id: cache
with: with:
path: | path: |
@ -37,9 +37,9 @@ jobs:
restore-keys: ${{ runner.os }}-bunny- restore-keys: ${{ runner.os }}-bunny-
- name: Setup NodeJS v16 - name: Setup NodeJS v16
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: "16" node-version: 20
check-latest: true check-latest: true
- name: Setup NPM Packages - name: Setup NPM Packages
@ -56,7 +56,7 @@ jobs:
CFCORE_API_TOKEN: ${{ secrets.CFCORE_API_TOKEN }} CFCORE_API_TOKEN: ${{ secrets.CFCORE_API_TOKEN }}
- name: Download Built Artifacts - name: Download Built Artifacts
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: Built Pack name: Built Pack
path: ./build/ path: ./build/

View File

@ -21,11 +21,12 @@ jobs:
steps: steps:
- name: Get Token - name: Get Token
id: token id: token
uses: peter-murray/workflow-application-token-action@v2.1.0 uses: peter-murray/workflow-application-token-action@v3
with: with:
application_id: ${{ secrets.APP_ID }} application_id: ${{ secrets.APP_ID }}
application_private_key: ${{ secrets.APP_KEY }} application_private_key: ${{ secrets.APP_KEY }}
organization: Nomi-CEu organization: Nomi-CEu
revoke_token: true
- name: Checkout Tag - name: Checkout Tag
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -34,7 +35,7 @@ jobs:
ref: ${{ inputs.tag }} ref: ${{ inputs.tag }}
- name: Restore Cached Files - name: Restore Cached Files
uses: actions/cache@v3 uses: actions/cache@v4
id: cache id: cache
with: with:
path: | path: |
@ -45,9 +46,9 @@ jobs:
restore-keys: ${{ runner.os }}-bunny- restore-keys: ${{ runner.os }}-bunny-
- name: Setup NodeJS v16 - name: Setup NodeJS v16
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: "16" node-version: 20
check-latest: true check-latest: true
- name: Setup NPM Packages - name: Setup NPM Packages
@ -64,7 +65,7 @@ jobs:
CFCORE_API_TOKEN: ${{ secrets.CFCORE_API_TOKEN }} CFCORE_API_TOKEN: ${{ secrets.CFCORE_API_TOKEN }}
- name: Download Built Artifacts - name: Download Built Artifacts
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: Built Pack name: Built Pack
path: ./build/ path: ./build/

View File

@ -48,9 +48,9 @@ jobs:
# Don't use cache to prevent cache poisoning # Don't use cache to prevent cache poisoning
- name: Setup NodeJS v16 - name: Setup NodeJS v16
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: "16" node-version: 20
check-latest: true check-latest: true
- name: Setup NPM Packages - name: Setup NPM Packages
@ -82,9 +82,9 @@ jobs:
# Don't use cache to prevent cache poisoning # Don't use cache to prevent cache poisoning
- name: Setup NodeJS v16 - name: Setup NodeJS v16
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: "16" node-version: 20
check-latest: true check-latest: true
- name: Setup NPM Packages - name: Setup NPM Packages
@ -98,11 +98,12 @@ jobs:
CFCORE_API_TOKEN: ${{ secrets.CFCORE_API_TOKEN }} CFCORE_API_TOKEN: ${{ secrets.CFCORE_API_TOKEN }}
- name: Upload Client Zip - name: Upload Client Zip
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: ${{ needs.setup.outputs.client }} name: ${{ needs.setup.outputs.client }}
path: ./build/client/**/* path: ./build/client/**/*
if-no-files-found: error if-no-files-found: error
compression-level: 9
buildServer: buildServer:
# Only continue if we are in base Nomi-CEu Repo and pull request is from fork # Only continue if we are in base Nomi-CEu Repo and pull request is from fork
@ -124,9 +125,9 @@ jobs:
# Don't use cache to prevent cache poisoning # Don't use cache to prevent cache poisoning
- name: Setup NodeJS v16 - name: Setup NodeJS v16
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: "16" node-version: 20
check-latest: true check-latest: true
- name: Setup NPM Packages - name: Setup NPM Packages
@ -140,11 +141,12 @@ jobs:
CFCORE_API_TOKEN: ${{ secrets.CFCORE_API_TOKEN }} CFCORE_API_TOKEN: ${{ secrets.CFCORE_API_TOKEN }}
- name: Upload Server Zip - name: Upload Server Zip
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: ${{ needs.setup.outputs.server }} name: ${{ needs.setup.outputs.server }}
path: ./build/server/**/* path: ./build/server/**/*
if-no-files-found: error if-no-files-found: error
compression-level: 9
buildLang: buildLang:
# Only continue if we are in base Nomi-CEu Repo and pull request is from fork # Only continue if we are in base Nomi-CEu Repo and pull request is from fork
@ -166,9 +168,9 @@ jobs:
# Don't use cache to prevent cache poisoning # Don't use cache to prevent cache poisoning
- name: Setup NodeJS v16 - name: Setup NodeJS v16
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: "16" node-version: 20
check-latest: true check-latest: true
- name: Setup NPM Packages - name: Setup NPM Packages
@ -182,15 +184,17 @@ jobs:
CFCORE_API_TOKEN: ${{ secrets.CFCORE_API_TOKEN }} CFCORE_API_TOKEN: ${{ secrets.CFCORE_API_TOKEN }}
- name: Upload Lang Zip - name: Upload Lang Zip
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: ${{ needs.setup.outputs.lang }} name: ${{ needs.setup.outputs.lang }}
path: ./build/lang/**/* path: ./build/lang/**/*
if-no-files-found: error if-no-files-found: error
compression-level: 9
- name: Upload Changelogs - name: Upload Changelogs
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: Changelogs name: Changelogs
path: ./build/*.md path: ./build/*.md
if-no-files-found: error if-no-files-found: error
compression-level: 9

View File

@ -58,11 +58,12 @@ jobs:
steps: steps:
- name: Get Token - name: Get Token
id: token id: token
uses: peter-murray/workflow-application-token-action@v2.1.0 uses: peter-murray/workflow-application-token-action@v3
with: with:
application_id: ${{ secrets.APP_ID }} application_id: ${{ secrets.APP_ID }}
application_private_key: ${{ secrets.APP_KEY }} application_private_key: ${{ secrets.APP_KEY }}
organization: Nomi-CEu organization: Nomi-CEu
revoke_token: true
- name: Checkout Repo - name: Checkout Repo
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -71,7 +72,7 @@ jobs:
token: ${{ steps.token.outputs.token }} token: ${{ steps.token.outputs.token }}
- name: Restore Cached Files - name: Restore Cached Files
uses: actions/cache@v3 uses: actions/cache@v4
id: cache id: cache
with: with:
path: | path: |
@ -82,9 +83,9 @@ jobs:
restore-keys: ${{ runner.os }}-bunny- restore-keys: ${{ runner.os }}-bunny-
- name: Setup NodeJS v16 - name: Setup NodeJS v16
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: "16" node-version: 20
check-latest: true check-latest: true
- name: Setup NPM Packages - name: Setup NPM Packages

View File

@ -28,7 +28,7 @@ jobs:
# Nomi-CEu-Management has access to all of Nomi-CEu's Repos. # Nomi-CEu-Management has access to all of Nomi-CEu's Repos.
- name: Get Token - name: Get Token
id: token id: token
uses: peter-murray/workflow-application-token-action@v2.1.0 uses: peter-murray/workflow-application-token-action@v3
with: with:
# Shared Org Secret: Contains the Nomi-CEu-Management App ID (773030) # Shared Org Secret: Contains the Nomi-CEu-Management App ID (773030)
application_id: ${{ secrets.APP_ID }} application_id: ${{ secrets.APP_ID }}
@ -37,6 +37,7 @@ jobs:
# Paste the output of the command into the secret value. # Paste the output of the command into the secret value.
application_private_key: ${{ secrets.APP_KEY }} application_private_key: ${{ secrets.APP_KEY }}
organization: Nomi-CEu organization: Nomi-CEu
revoke_token: true
- name: Dispatch Workflow - name: Dispatch Workflow
uses: actions/github-script@v5 uses: actions/github-script@v5