From a77b769687e95e399614a607fbf3005afea2500a Mon Sep 17 00:00:00 2001 From: khai96_ Date: Tue, 9 Dec 2025 07:26:46 +0700 Subject: [PATCH 1/5] fix(ci): exclude macos --- .github/workflows/test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 07bd9ba..b66ca50 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -74,8 +74,8 @@ jobs: fail-fast: false matrix: os: + # macos is excluded from this test because node 12 is no longer available on this platform - ubuntu-latest - - macos-latest - windows-latest standalone: From 61bc82c7df449f480d8aa43c14cfced3c0aec42b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kh=E1=BA=A3i?= Date: Wed, 10 Dec 2025 19:14:52 +0700 Subject: [PATCH 2/5] refactor: remove star imports (#196) --- src/inputs/run-install.ts | 4 ++-- src/install-pnpm/run.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/inputs/run-install.ts b/src/inputs/run-install.ts index d7215b7..a30877c 100644 --- a/src/inputs/run-install.ts +++ b/src/inputs/run-install.ts @@ -1,5 +1,5 @@ import { getInput, error } from '@actions/core' -import * as yaml from 'yaml' +import { parse as parseYaml } from 'yaml' import { z, ZodError } from 'zod' const RunInstallSchema = z.object({ @@ -20,7 +20,7 @@ export type RunInstall = z.infer export function parseRunInstall(inputName: string): RunInstall[] { const input = getInput(inputName, { required: true }) - const parsedInput: unknown = yaml.parse(input) + const parsedInput: unknown = parseYaml(input) try { const result: RunInstallInput = RunInstallInputSchema.parse(parsedInput) diff --git a/src/install-pnpm/run.ts b/src/install-pnpm/run.ts index f5b3ae0..005c500 100644 --- a/src/install-pnpm/run.ts +++ b/src/install-pnpm/run.ts @@ -6,7 +6,7 @@ import path from 'path' import { execPath } from 'process' import util from 'util' import { Inputs } from '../inputs' -import YAML from 'yaml' +import { parse as parseYaml } from 'yaml' export async function runSelfInstaller(inputs: Inputs): Promise { const { version, dest, packageJsonFile, standalone } = inputs @@ -63,7 +63,7 @@ async function readTarget(opts: { try { const content = readFileSync(path.join(GITHUB_WORKSPACE, packageJsonFile), 'utf8'); ({ packageManager } = packageJsonFile.endsWith(".yaml") - ? YAML.parse(content, { merge: true }) + ? parseYaml(content, { merge: true }) : JSON.parse(content) ) } catch (error: unknown) { From b9e1dbc72ff7358f971cc0b7c62c7a0d83f1068b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kh=E1=BA=A3i?= Date: Wed, 10 Dec 2025 19:54:29 +0700 Subject: [PATCH 3/5] fix(ci): exclude macos (#197) --- .github/workflows/test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 07bd9ba..b66ca50 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -74,8 +74,8 @@ jobs: fail-fast: false matrix: os: + # macos is excluded from this test because node 12 is no longer available on this platform - ubuntu-latest - - macos-latest - windows-latest standalone: From 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c Mon Sep 17 00:00:00 2001 From: Boosted-Bonobo Date: Mon, 15 Dec 2025 15:31:35 +0200 Subject: [PATCH 4/5] ci: pin github actions (#199) --- .github/workflows/test.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index b66ca50..2c214f3 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -22,7 +22,7 @@ jobs: - windows-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 - name: Run the action uses: ./ @@ -51,7 +51,7 @@ jobs: - windows-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 - name: Run the action uses: ./ @@ -83,7 +83,7 @@ jobs: - false steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 - name: Run the action uses: ./ @@ -92,7 +92,7 @@ jobs: standalone: ${{ matrix.standalone }} - name: install Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: # pnpm@7.0.0 is not compatible with Node.js 12 node-version: 12.22.12 @@ -160,7 +160,7 @@ jobs: - yarn steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 - name: Run the action uses: ./ From 9b5745cdf0a2e8c2620f0746130f809adb911c19 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Tue, 17 Feb 2026 13:30:54 +0100 Subject: [PATCH 5/5] feat!: run the action on Node.js 24 (#205) --- action.yml | 2 +- package.json | 2 +- pnpm-lock.yaml | 18 +++++++++--------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/action.yml b/action.yml index 3eb67de..fe97198 100644 --- a/action.yml +++ b/action.yml @@ -37,6 +37,6 @@ outputs: bin_dest: description: Location of `pnpm` and `pnpx` command runs: - using: node20 + using: node24 main: dist/index.js post: dist/index.js diff --git a/package.json b/package.json index c3b6878..4582273 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "@actions/exec": "^1.1.1", "@actions/glob": "^0.5.0", "@types/expand-tilde": "^2.0.2", - "@types/node": "^20.11.5", + "@types/node": "^22.0.0", "expand-tilde": "^2.0.2", "yaml": "^2.3.4", "zod": "^3.22.4" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4fffe48..c3957a9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -24,8 +24,8 @@ importers: specifier: ^2.0.2 version: 2.0.2 '@types/node': - specifier: ^20.11.5 - version: 20.17.17 + specifier: ^22.0.0 + version: 22.19.11 expand-tilde: specifier: ^2.0.2 version: 2.0.2 @@ -137,8 +137,8 @@ packages: '@types/expand-tilde@2.0.2': resolution: {integrity: sha512-wlsMYiapmIR4Eq/Z0qysN8xaDMjSkO6AIDNFx9oxgWGeKVA1jU+NzwPRZErBNP5z6/dx6QNkNpKglBGPO9OkTA==} - '@types/node@20.17.17': - resolution: {integrity: sha512-/WndGO4kIfMicEQLTi/mDANUu/iVUhT7KboZPdEqqHQ4aTS+3qT3U5gIqWDFV+XouorjfgGqvKILJeHhuQgFYg==} + '@types/node@22.19.11': + resolution: {integrity: sha512-BH7YwL6rA93ReqeQS1c4bsPpcfOmJasG+Fkr6Y59q83f9M1WcBRHR2vM+P9eOisYRcN3ujQoiZY8uk5W+1WL8w==} '@typespec/ts-http-runtime@0.3.0': resolution: {integrity: sha512-sOx1PKSuFwnIl7z4RN0Ls7N9AQawmR9r66eI5rFCzLDIs8HTIYrIpH9QjYWoX0lkgGrkLxXhi4QnK7MizPRrIg==} @@ -335,8 +335,8 @@ packages: engines: {node: '>=14.17'} hasBin: true - undici-types@6.19.8: - resolution: {integrity: sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==} + undici-types@6.21.0: + resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} undici@5.29.0: resolution: {integrity: sha512-raqeBD6NQK4SkWhQzeYKd1KmIG6dllBOTt55Rmkt4HtI9mwdWtJljnrXjAFUBLTSN67HWrOIZ3EPF4kjUw80Bg==} @@ -539,9 +539,9 @@ snapshots: '@types/expand-tilde@2.0.2': {} - '@types/node@20.17.17': + '@types/node@22.19.11': dependencies: - undici-types: 6.19.8 + undici-types: 6.21.0 '@typespec/ts-http-runtime@0.3.0': dependencies: @@ -717,7 +717,7 @@ snapshots: typescript@5.7.3: {} - undici-types@6.19.8: {} + undici-types@6.21.0: {} undici@5.29.0: dependencies: