diff --git a/.github/workflows/sync-github-repo-settings.yml b/.github/workflows/sync-github-repo-settings.yml index b8ea319..0acc973 100644 --- a/.github/workflows/sync-github-repo-settings.yml +++ b/.github/workflows/sync-github-repo-settings.yml @@ -25,7 +25,7 @@ jobs: owner: ${{ github.repository_owner }} - name: Update Repository Settings - uses: joshjohanning/bulk-github-repo-settings-sync-action@v1.15.2 + uses: joshjohanning/bulk-github-repo-settings-sync-action@v2 with: github-token: ${{ steps.app-token.outputs.token }} repositories-file: 'repos.yml' diff --git a/config/copilot/copilot-instructions-actions.md b/config/copilot/copilot-instructions-actions.md index 0aa8acf..d5c7e4d 100644 --- a/config/copilot/copilot-instructions-actions.md +++ b/config/copilot/copilot-instructions-actions.md @@ -59,7 +59,8 @@ const { functionToTest } = await import('../src/index.js'); ### Node Runtime -- Use the same Node.js runtime version configured in this repo's `action.yml` (currently `node20`) for `runs.using` +- Only use Node.js runtimes officially supported by GitHub Actions (see [GitHub Actions documentation](https://docs.github.com/en/actions/sharing-automations/creating-actions/metadata-syntax-for-github-actions#runs-for-javascript-actions) for current supported versions) +- Use the same Node.js runtime version configured in this repo's `action.yml` for `runs.using` - When updating Node.js support, update `runs.using` in `action.yml`, the `engines.node` range in `package.json`, and CI/test matrices together to stay consistent ### Input Handling diff --git a/config/package-json/package.json b/config/package-json/package.json index a94df8f..44a9853 100644 --- a/config/package-json/package.json +++ b/config/package-json/package.json @@ -28,7 +28,7 @@ ".": "./dist/index.js" }, "engines": { - "node": ">=20" + "node": ">=24" }, "scripts": { "bundle": "npm run format:write && npm run package", diff --git a/config/workflows/ci.yml b/config/workflows/ci.yml index f4de176..52dca65 100644 --- a/config/workflows/ci.yml +++ b/config/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v6 with: - node-version: '20' + node-version: '24' cache: 'npm' - name: Install dependencies @@ -49,4 +49,4 @@ jobs: fi - name: Check npm version compatibility - uses: joshjohanning/npm-version-check-action@v1 + uses: joshjohanning/npm-version-check-action@v2 diff --git a/config/workflows/publish.yml b/config/workflows/publish.yml index b5dbe35..ff48e23 100644 --- a/config/workflows/publish.yml +++ b/config/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v6 with: persist-credentials: false - - uses: joshjohanning/publish-github-action@v2 + - uses: joshjohanning/publish-github-action@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} npm_package_command: npm run package