diff --git a/.github/workflows/check-markdown-task.yml b/.github/workflows/check-markdown-task.yml index a26758a6..259c2508 100644 --- a/.github/workflows/check-markdown-task.yml +++ b/.github/workflows/check-markdown-task.yml @@ -1,10 +1,6 @@ # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-markdown-task.md name: Check Markdown -env: - # See: https://github.com/actions/setup-node/#readme - NODE_VERSION: 16.x - # See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows on: create: @@ -74,7 +70,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v5 with: - node-version: ${{ env.NODE_VERSION }} + node-version-file: package.json - name: Initialize markdownlint-cli problem matcher uses: xt0rted/markdownlint-problem-matcher@v3 @@ -100,7 +96,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v5 with: - node-version: ${{ env.NODE_VERSION }} + node-version-file: package.json - name: Install Task uses: arduino/setup-task@v2 diff --git a/.github/workflows/check-prettier-formatting-task.yml b/.github/workflows/check-prettier-formatting-task.yml index 770323ae..6683cf58 100644 --- a/.github/workflows/check-prettier-formatting-task.yml +++ b/.github/workflows/check-prettier-formatting-task.yml @@ -1,10 +1,6 @@ # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-prettier-formatting-task.md name: Check Prettier Formatting -env: - # See: https://github.com/actions/setup-node/#readme - NODE_VERSION: 16.x - # See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows on: create: @@ -242,7 +238,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v5 with: - node-version: ${{ env.NODE_VERSION }} + node-version-file: package.json - name: Install Task uses: arduino/setup-task@v2 diff --git a/.github/workflows/check-taskfiles.yml b/.github/workflows/check-taskfiles.yml index 7d7ab36a..e6a48575 100644 --- a/.github/workflows/check-taskfiles.yml +++ b/.github/workflows/check-taskfiles.yml @@ -1,10 +1,6 @@ # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-taskfiles.md name: Check Taskfiles -env: - # See: https://github.com/actions/setup-node/#readme - NODE_VERSION: 16.x - # See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows on: create: @@ -71,7 +67,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v5 with: - node-version: ${{ env.NODE_VERSION }} + node-version-file: package.json - name: Download JSON schema for Taskfiles id: download-schema diff --git a/.github/workflows/check-toc-task.yml b/.github/workflows/check-toc-task.yml index 692744cd..3a30870e 100644 --- a/.github/workflows/check-toc-task.yml +++ b/.github/workflows/check-toc-task.yml @@ -1,10 +1,6 @@ # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-toc-task.md name: Check ToC -env: - # See: https://github.com/actions/setup-node/#readme - NODE_VERSION: 16.x - # See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows on: create: @@ -76,7 +72,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v5 with: - node-version: ${{ env.NODE_VERSION }} + node-version-file: package.json - name: Install Task uses: arduino/setup-task@v2 diff --git a/.github/workflows/check-workflows-task.yml b/.github/workflows/check-workflows-task.yml index ce2cf733..1c928952 100644 --- a/.github/workflows/check-workflows-task.yml +++ b/.github/workflows/check-workflows-task.yml @@ -1,10 +1,6 @@ # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-workflows-task.md name: Check Workflows -env: - # See: https://github.com/actions/setup-node/#readme - NODE_VERSION: 16.x - # See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows on: push: @@ -36,7 +32,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v5 with: - node-version: ${{ env.NODE_VERSION }} + node-version-file: package.json - name: Install Task uses: arduino/setup-task@v2 diff --git a/.github/workflows/sync-labels-npm.yml b/.github/workflows/sync-labels-npm.yml index cc7ba9fc..3249261f 100644 --- a/.github/workflows/sync-labels-npm.yml +++ b/.github/workflows/sync-labels-npm.yml @@ -1,12 +1,6 @@ # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/sync-labels-npm.md name: Sync Labels -env: - # See: https://github.com/actions/setup-node/#readme - NODE_VERSION: 16.x - CONFIGURATIONS_FOLDER: .github/label-configuration-files - CONFIGURATIONS_ARTIFACT_PREFIX: label-configuration-file- - # See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows on: push: @@ -27,6 +21,10 @@ on: workflow_dispatch: repository_dispatch: +env: + CONFIGURATIONS_FOLDER: .github/label-configuration-files + CONFIGURATIONS_ARTIFACT_PREFIX: label-configuration-file- + jobs: check: runs-on: ubuntu-latest @@ -38,7 +36,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v5 with: - node-version: ${{ env.NODE_VERSION }} + node-version-file: package.json - name: Download JSON schema for labels configuration file id: download-schema @@ -132,7 +130,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v5 with: - node-version: ${{ env.NODE_VERSION }} + node-version-file: package.json - name: Merge label configuration files run: | diff --git a/package-lock.json b/package-lock.json index c07f3fe2..127bb330 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,6 +12,9 @@ "markdown-toc": "^1.2.0", "markdownlint-cli": "^0.37.0", "prettier": "^3.6.2" + }, + "engines": { + "node": "16.x" } }, "node_modules/@financial-times/origami-service-makefile": { diff --git a/package.json b/package.json index ca345a8b..5174dce9 100644 --- a/package.json +++ b/package.json @@ -7,5 +7,8 @@ "markdown-toc": "^1.2.0", "markdownlint-cli": "^0.37.0", "prettier": "^3.6.2" + }, + "engines": { + "node": "16.x" } }