1
0
mirror of https://github.com/flarum/core.git synced 2025-08-04 15:37:51 +02:00

[1.x] chore: resolve node deprecation warnings in workflows (#4081)

* chore: update frontend workflow

Backport of 356f97641e

* chore: bump default node version and `flarum/action-build`

* fix

* dummy commit
This commit is contained in:
Davide Iadeluca
2024-10-22 11:14:06 +02:00
committed by GitHub
parent 0b55830693
commit 92b2b4aad1
2 changed files with 6 additions and 4 deletions

View File

@@ -74,7 +74,7 @@ on:
description: The node version to use for the workflow. description: The node version to use for the workflow.
type: number type: number
required: false required: false
default: 16 default: 20
js_package_manager: js_package_manager:
description: "Enable TypeScript?" description: "Enable TypeScript?"
@@ -105,6 +105,7 @@ env:
ci_script: ${{ inputs.js_package_manager == 'yarn' && 'yarn install --immutable' || 'npm ci' }} ci_script: ${{ inputs.js_package_manager == 'yarn' && 'yarn install --immutable' || 'npm ci' }}
cache_dependency_path: ${{ inputs.cache_dependency_path || format(inputs.js_package_manager == 'yarn' && '{0}/yarn.lock' || '{0}/package-lock.json', inputs.frontend_directory) }} cache_dependency_path: ${{ inputs.cache_dependency_path || format(inputs.js_package_manager == 'yarn' && '{0}/yarn.lock' || '{0}/package-lock.json', inputs.frontend_directory) }}
COMPOSER_AUTH: ${{ secrets.composer_auth }} COMPOSER_AUTH: ${{ secrets.composer_auth }}
DISABLE_V8_COMPILE_CACHE: 1
jobs: jobs:
build: build:
@@ -116,10 +117,10 @@ jobs:
steps: steps:
- name: Check out code - name: Check out code
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Set up Node - name: Set up Node
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: ${{ inputs.node_version }} node-version: ${{ inputs.node_version }}
cache: ${{ inputs.js_package_manager }} cache: ${{ inputs.js_package_manager }}
@@ -142,7 +143,7 @@ jobs:
working-directory: ${{ inputs.frontend_directory }} working-directory: ${{ inputs.frontend_directory }}
- name: JS Checks & Production Build - name: JS Checks & Production Build
uses: flarum/action-build@v3 uses: flarum/action-build@v4
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
build_script: ${{ inputs.build_script }} build_script: ${{ inputs.build_script }}

View File

@@ -1,5 +1,6 @@
{ {
"compilerOptions": { "compilerOptions": {
"skipLibCheck": true,
"allowUmdGlobalAccess": true, "allowUmdGlobalAccess": true,
"sourceMap": true, "sourceMap": true,
"strict": true, "strict": true,