diff --git a/.github/workflows/check-markdown-task.yml b/.github/workflows/check-markdown-task.yml index 9b824c9..9f08533 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: @@ -77,7 +73,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 @@ -105,7 +101,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-npm-task.yml b/.github/workflows/check-npm-task.yml index ca388ff..ec16324 100644 --- a/.github/workflows/check-npm-task.yml +++ b/.github/workflows/check-npm-task.yml @@ -1,10 +1,6 @@ # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-npm-task.md name: Check npm -env: - # See: https://github.com/actions/setup-node/#readme - NODE_VERSION: 16.x - # See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows on: create: @@ -72,7 +68,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 @@ -104,7 +100,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 f0aab28..9368d4c 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: @@ -245,7 +241,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 7a3cdde..5dac0c9 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: @@ -73,7 +69,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 a8b5148..9421cd7 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: @@ -75,7 +71,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 95e5ab3..9baa9fc 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 @@ -40,7 +38,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 @@ -139,7 +137,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 562f7c6..73ee53a 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 9a886ce..fb408cd 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" } }