From 26961cf329f22f6837d5f54c3efd76b480300ace Mon Sep 17 00:00:00 2001 From: suyashgaonkar Date: Mon, 15 Jul 2024 22:17:17 +0530 Subject: [PATCH 1/4] Documentation update in the README file (#1106) * first commit on using setup node * Delete .github/workflows/helloWorld.yml * Create main.yml * Rename main.yml to helloworld.yml * goodbye world added * name changed to goodbye * updated README --------- Co-authored-by: Suyash Gaonkar <39784472+suyashrg18@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 86236a495..6b14f9259 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ See [action.yml](action.yml) - uses: actions/setup-node@v4 with: # Version Spec of the version to use in SemVer notation. - # It also emits such aliases as lts, latest, nightly and canary builds + # It also admits such aliases as lts, latest, nightly and canary builds # Examples: 12.x, 10.15.1, >=10.15.0, lts/Hydrogen, 16-nightly, latest, node node-version: '' From 1c7b2db92075f828bee89d7e19d33a911d15e7b3 Mon Sep 17 00:00:00 2001 From: Priya Gupta <147705955+priyagupta108@users.noreply.github.com> Date: Sat, 7 Sep 2024 01:00:34 +0530 Subject: [PATCH 2/4] Fix: windows arm64 setup (#1126) * Add condition to ensure ZIP extraction targets only Windows ARM64 official archives * Bumps micromatch from 4.0.5 to 4.0.8 --- dist/setup/index.js | 8 ++++---- package-lock.json | 8 ++++---- src/distributions/base-distribution.ts | 7 ++++--- src/distributions/official_builds/official_builds.ts | 6 +++++- 4 files changed, 17 insertions(+), 12 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index 2e3e552a7..e1b7296f5 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -93883,7 +93883,7 @@ class BaseDistribution { } throw err; } - const toolPath = yield this.extractArchive(downloadPath, info); + const toolPath = yield this.extractArchive(downloadPath, info, true); core.info('Done'); return toolPath; }); @@ -93933,7 +93933,7 @@ class BaseDistribution { return toolPath; }); } - extractArchive(downloadPath, info) { + extractArchive(downloadPath, info, isOfficialArchive) { return __awaiter(this, void 0, void 0, function* () { // // Extract @@ -93948,7 +93948,7 @@ class BaseDistribution { // on Windows runners without PowerShell Core. // // For default PowerShell Windows it should contain extension type to unpack it. - if (extension === '.zip') { + if (extension === '.zip' && isOfficialArchive) { const renamedArchive = `${downloadPath}.zip`; fs_1.default.renameSync(downloadPath, renamedArchive); extPath = yield tc.extractZip(renamedArchive); @@ -94186,7 +94186,7 @@ class OfficialBuilds extends base_distribution_1.default { core.info(`Acquiring ${versionInfo.resolvedVersion} - ${versionInfo.arch} from ${versionInfo.downloadUrl}`); downloadPath = yield tc.downloadTool(versionInfo.downloadUrl, undefined, this.nodeInfo.auth); if (downloadPath) { - toolPath = yield this.extractArchive(downloadPath, versionInfo); + toolPath = yield this.extractArchive(downloadPath, versionInfo, false); } } else { diff --git a/package-lock.json b/package-lock.json index d4724a655..56eb064ac 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4429,12 +4429,12 @@ } }, "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "dev": true, "dependencies": { - "braces": "^3.0.2", + "braces": "^3.0.3", "picomatch": "^2.3.1" }, "engines": { diff --git a/src/distributions/base-distribution.ts b/src/distributions/base-distribution.ts index cf5bb5449..70b4b5724 100644 --- a/src/distributions/base-distribution.ts +++ b/src/distributions/base-distribution.ts @@ -150,7 +150,7 @@ export default abstract class BaseDistribution { throw err; } - const toolPath = await this.extractArchive(downloadPath, info); + const toolPath = await this.extractArchive(downloadPath, info, true); core.info('Done'); return toolPath; @@ -210,7 +210,8 @@ export default abstract class BaseDistribution { protected async extractArchive( downloadPath: string, - info: INodeVersionInfo | null + info: INodeVersionInfo | null, + isOfficialArchive?: boolean ) { // // Extract @@ -225,7 +226,7 @@ export default abstract class BaseDistribution { // on Windows runners without PowerShell Core. // // For default PowerShell Windows it should contain extension type to unpack it. - if (extension === '.zip') { + if (extension === '.zip' && isOfficialArchive) { const renamedArchive = `${downloadPath}.zip`; fs.renameSync(downloadPath, renamedArchive); extPath = await tc.extractZip(renamedArchive); diff --git a/src/distributions/official_builds/official_builds.ts b/src/distributions/official_builds/official_builds.ts index 4e368b001..e56eaf812 100644 --- a/src/distributions/official_builds/official_builds.ts +++ b/src/distributions/official_builds/official_builds.ts @@ -88,7 +88,11 @@ export default class OfficialBuilds extends BaseDistribution { ); if (downloadPath) { - toolPath = await this.extractArchive(downloadPath, versionInfo); + toolPath = await this.extractArchive( + downloadPath, + versionInfo, + false + ); } } else { core.info( From aa363ded8fefb1e43b7a6cb669a222a98c09eb57 Mon Sep 17 00:00:00 2001 From: Joel Ambass Date: Mon, 2 Sep 2024 14:49:55 +0200 Subject: [PATCH 3/4] Create publish-immutable-action.yml --- .../workflows/publish-immutable-actions.yml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/publish-immutable-actions.yml diff --git a/.github/workflows/publish-immutable-actions.yml b/.github/workflows/publish-immutable-actions.yml new file mode 100644 index 000000000..1e02a3a15 --- /dev/null +++ b/.github/workflows/publish-immutable-actions.yml @@ -0,0 +1,22 @@ +name: 'Publish Immutable Action Version' + +on: + release: + types: [created] + +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + packages: write + + steps: + - name: Checking out + uses: actions/checkout@v4 + - name: Publish + id: publish + uses: actions/publish-immutable-action@0.0.1 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} From 0a44ba7841725637a19e28fa30b79a866c81b0a6 Mon Sep 17 00:00:00 2001 From: William Entriken Date: Thu, 19 Sep 2024 09:53:38 -0400 Subject: [PATCH 4/4] Correct version string (#1124) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6b14f9259..9843ee215 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ See [action.yml](action.yml) - uses: actions/setup-node@v4 with: # Version Spec of the version to use in SemVer notation. - # It also admits such aliases as lts, latest, nightly and canary builds + # It also admits such aliases as lts/*, latest, nightly and canary builds # Examples: 12.x, 10.15.1, >=10.15.0, lts/Hydrogen, 16-nightly, latest, node node-version: '' pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy