mirror of
https://github.com/actions/setup-node.git
synced 2025-10-05 15:43:36 +00:00
Some checks failed
Check dist / Check dist/ (push) Failing after 0s
e2e-cache / Test yarn subprojects (24) (push) Failing after 0s
versions / local-cache (22, ubuntu-latest) (push) Failing after 0s
versions / local-cache (24, ubuntu-latest) (push) Failing after 0s
Basic validation / Basic validation (push) Failing after 0s
e2e-cache / Test npm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (18, ubuntu-latest) (push) Failing after 0s
e2e-cache / Test npm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (22, ubuntu-latest) (push) Failing after 0s
e2e-cache / Test npm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (20, ubuntu-latest) (push) Failing after 0s
e2e-cache / Test npm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (24, ubuntu-latest) (push) Failing after 0s
e2e-cache / Test pnpm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (18, ubuntu-latest) (push) Failing after 0s
e2e-cache / Test pnpm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (20, ubuntu-latest) (push) Failing after 1s
e2e-cache / Test pnpm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (24, ubuntu-latest) (push) Failing after 0s
e2e-cache / Test pnpm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (22, ubuntu-latest) (push) Failing after 0s
e2e-cache / Test yarn 1 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (18, ubuntu-latest) (push) Failing after 0s
e2e-cache / Test yarn 1 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (20, ubuntu-latest) (push) Failing after 0s
e2e-cache / Test yarn 3 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (18, ubuntu-latest) (push) Failing after 0s
e2e-cache / Test yarn 1 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (24, ubuntu-latest) (push) Failing after 0s
e2e-cache / Test yarn 3 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (20, ubuntu-latest) (push) Failing after 0s
e2e-cache / Test yarn 3 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (22, ubuntu-latest) (push) Failing after 0s
e2e-cache / Test yarn subprojects all locally managed (24) (push) Failing after 0s
e2e-cache / Test yarn 3 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (24, ubuntu-latest) (push) Failing after 0s
e2e-cache / Test yarn subprojects (18) (push) Failing after 0s
e2e-cache / Test yarn subprojects (20) (push) Failing after 0s
e2e-cache / Test yarn subprojects (22) (push) Failing after 0s
e2e-cache / Test yarn subprojects all locally managed (18) (push) Failing after 0s
e2e-cache / Test yarn subprojects all locally managed (20) (push) Failing after 0s
e2e-cache / Test yarn subprojects all locally managed (22) (push) Failing after 0s
e2e-cache / Test yarn subprojects some locally managed (20) (push) Failing after 0s
e2e-cache / Test yarn subprojects some locally managed (18) (push) Failing after 0s
e2e-cache / Test yarn subprojects some locally managed (22) (push) Failing after 0s
e2e-cache / Test yarn subprojects some locally managed (24) (push) Failing after 0s
e2e-cache / Test yarn subprojects managed by git (18) (push) Failing after 0s
e2e-cache / Test yarn subprojects managed by git (20) (push) Failing after 0s
e2e-cache / Test yarn subprojects managed by git (22) (push) Failing after 0s
e2e-cache / Test yarn subprojects managed by git (24) (push) Failing after 0s
e2e-cache / Test enabling cache if package manager field is present (Node ${{ matrix.node-version }}, ${{ matrix.os }}) (18, ubuntu-latest) (push) Failing after 0s
e2e-cache / Test enabling cache if package manager field is present (Node ${{ matrix.node-version }}, ${{ matrix.os }}) (20, ubuntu-latest) (push) Failing after 0s
e2e-cache / Test enabling cache if package manager field is present (Node ${{ matrix.node-version }}, ${{ matrix.os }}) (22, ubuntu-latest) (push) Failing after 0s
Licensed / Licensed (push) Failing after 0s
proxy / test-proxy (push) Failing after 0s
proxy / test-bypass-proxy (push) Failing after 0s
versions / local-cache (18, ubuntu-latest) (push) Failing after 0s
versions / local-cache (20, ubuntu-latest) (push) Failing after 0s
versions / lts-syntax (lts/*, ubuntu-latest) (push) Failing after 0s
versions / lts-syntax (lts/dubnium, ubuntu-latest) (push) Failing after 0s
versions / lts-syntax (lts/erbium, ubuntu-latest) (push) Failing after 0s
versions / v8-canary-syntax (20-v8-canary, ubuntu-latest) (push) Failing after 1s
versions / lts-syntax (lts/-1, ubuntu-latest) (push) Failing after 0s
versions / lts-syntax (lts/fermium, ubuntu-latest) (push) Failing after 0s
versions / v8-canary-syntax (20.0.0-v8-canary, ubuntu-latest) (push) Failing after 0s
versions / v8-canary-syntax (20.0.0-v8-canary20221101e50e45c9f8, ubuntu-latest) (push) Failing after 0s
versions / nightly-syntax (20-nightly, ubuntu-latest) (push) Failing after 0s
versions / nightly-syntax (18.0.0-nightly, ubuntu-latest) (push) Failing after 0s
versions / rc-syntax (18.0.0-rc.2, ubuntu-latest) (push) Failing after 0s
versions / nightly-syntax (21-nightly, ubuntu-latest) (push) Failing after 0s
versions / rc-syntax (19.0.0-rc.0, ubuntu-latest) (push) Failing after 0s
versions / rc-syntax (20.0.0-rc.1, ubuntu-latest) (push) Failing after 0s
versions / manifest (18.20.0, ubuntu-latest) (push) Failing after 0s
versions / manifest (20.10.0, ubuntu-latest) (push) Failing after 0s
versions / manifest (22.0.0, ubuntu-latest) (push) Failing after 0s
versions / check-latest (18, ubuntu-latest) (push) Failing after 0s
versions / check-latest (24, ubuntu-latest) (push) Failing after 0s
versions / version-file (.nvmrc, ubuntu-latest) (push) Failing after 0s
versions / version-file (.tool-versions, ubuntu-latest) (push) Failing after 0s
versions / check-latest (20, ubuntu-latest) (push) Failing after 0s
versions / check-latest (22, ubuntu-latest) (push) Failing after 1s
versions / version-file (.tool-versions-node, ubuntu-latest) (push) Failing after 0s
versions / version-file (package.json, ubuntu-latest) (push) Failing after 0s
versions / version-file-volta (ubuntu-latest) (push) Failing after 0s
versions / version-file-volta-extends (ubuntu-latest) (push) Failing after 1s
versions / node-dist (17, ubuntu-latest) (push) Failing after 1s
versions / node-dist (19, ubuntu-latest) (push) Failing after 1s
versions / old-versions (ubuntu-latest) (push) Failing after 0s
versions / node-latest-aliases (current, ubuntu-latest) (push) Failing after 0s
versions / node-latest-aliases (latest, ubuntu-latest) (push) Failing after 1s
versions / node-latest-aliases (node, ubuntu-latest) (push) Failing after 0s
versions / local-cache (18, macos-13) (push) Has been cancelled
versions / local-cache (18, macos-latest) (push) Has been cancelled
versions / local-cache (18, windows-latest) (push) Has been cancelled
versions / local-cache (20, macos-13) (push) Has been cancelled
versions / local-cache (20, macos-latest) (push) Has been cancelled
versions / local-cache (20, windows-latest) (push) Has been cancelled
versions / local-cache (22, macos-13) (push) Has been cancelled
versions / local-cache (22, macos-latest) (push) Has been cancelled
versions / local-cache (22, windows-latest) (push) Has been cancelled
versions / local-cache (24, macos-13) (push) Has been cancelled
versions / local-cache (24, macos-latest) (push) Has been cancelled
versions / local-cache (24, windows-latest) (push) Has been cancelled
versions / version-file-volta (macos-latest) (push) Has been cancelled
versions / version-file-volta (windows-latest) (push) Has been cancelled
versions / version-file-volta-extends (macos-13) (push) Has been cancelled
versions / version-file-volta-extends (macos-latest) (push) Has been cancelled
versions / version-file-volta-extends (windows-latest) (push) Has been cancelled
versions / node-dist (17, macos-13) (push) Has been cancelled
versions / node-dist (17, macos-latest) (push) Has been cancelled
versions / node-dist (17, windows-latest) (push) Has been cancelled
versions / node-dist (19, macos-13) (push) Has been cancelled
versions / node-dist (19, macos-latest) (push) Has been cancelled
versions / node-dist (19, windows-latest) (push) Has been cancelled
versions / old-versions (macos-13) (push) Has been cancelled
versions / old-versions (windows-latest) (push) Has been cancelled
versions / arch (push) Has been cancelled
versions / check-latest (18, windows-latest) (push) Has been cancelled
versions / check-latest (20, macos-13) (push) Has been cancelled
versions / check-latest (20, macos-latest) (push) Has been cancelled
versions / check-latest (20, windows-latest) (push) Has been cancelled
versions / check-latest (22, macos-13) (push) Has been cancelled
versions / check-latest (22, macos-latest) (push) Has been cancelled
versions / check-latest (22, windows-latest) (push) Has been cancelled
versions / check-latest (24, macos-13) (push) Has been cancelled
versions / check-latest (24, macos-latest) (push) Has been cancelled
versions / check-latest (24, windows-latest) (push) Has been cancelled
versions / version-file (.nvmrc, macos-13) (push) Has been cancelled
versions / version-file (.nvmrc, macos-latest) (push) Has been cancelled
versions / version-file (.nvmrc, windows-latest) (push) Has been cancelled
versions / version-file (.tool-versions, macos-13) (push) Has been cancelled
versions / version-file (.tool-versions, macos-latest) (push) Has been cancelled
versions / version-file (.tool-versions, windows-latest) (push) Has been cancelled
versions / version-file (.tool-versions-node, macos-13) (push) Has been cancelled
versions / version-file (.tool-versions-node, macos-latest) (push) Has been cancelled
versions / version-file (.tool-versions-node, windows-latest) (push) Has been cancelled
versions / version-file (package.json, macos-13) (push) Has been cancelled
versions / version-file (package.json, macos-latest) (push) Has been cancelled
versions / manifest (20.10.0, windows-latest) (push) Has been cancelled
versions / manifest (22.0.0, macos-13) (push) Has been cancelled
versions / manifest (22.0.0, macos-latest) (push) Has been cancelled
versions / manifest (22.0.0, windows-latest) (push) Has been cancelled
versions / check-latest (18, macos-13) (push) Has been cancelled
versions / check-latest (18, macos-latest) (push) Has been cancelled
e2e-cache / Test npm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (18, macos-13) (push) Has been cancelled
e2e-cache / Test npm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (18, macos-latest) (push) Has been cancelled
e2e-cache / Test npm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (18, windows-latest) (push) Has been cancelled
e2e-cache / Test npm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (20, macos-13) (push) Has been cancelled
e2e-cache / Test npm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (20, macos-latest) (push) Has been cancelled
e2e-cache / Test yarn 1 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (24, windows-latest) (push) Has been cancelled
e2e-cache / Test npm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (20, windows-latest) (push) Has been cancelled
e2e-cache / Test npm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (22, macos-13) (push) Has been cancelled
e2e-cache / Test npm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (22, macos-latest) (push) Has been cancelled
e2e-cache / Test npm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (22, windows-latest) (push) Has been cancelled
e2e-cache / Test npm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (24, macos-13) (push) Has been cancelled
e2e-cache / Test npm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (24, macos-latest) (push) Has been cancelled
e2e-cache / Test npm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (24, windows-latest) (push) Has been cancelled
e2e-cache / Test pnpm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (18, macos-13) (push) Has been cancelled
e2e-cache / Test pnpm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (18, macos-latest) (push) Has been cancelled
e2e-cache / Test pnpm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (18, windows-latest) (push) Has been cancelled
e2e-cache / Test pnpm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (20, macos-13) (push) Has been cancelled
e2e-cache / Test pnpm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (20, macos-latest) (push) Has been cancelled
e2e-cache / Test pnpm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (20, windows-latest) (push) Has been cancelled
e2e-cache / Test pnpm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (22, macos-13) (push) Has been cancelled
e2e-cache / Test pnpm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (22, macos-latest) (push) Has been cancelled
e2e-cache / Test pnpm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (22, windows-latest) (push) Has been cancelled
e2e-cache / Test pnpm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (24, macos-13) (push) Has been cancelled
e2e-cache / Test pnpm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (24, macos-latest) (push) Has been cancelled
e2e-cache / Test pnpm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (24, windows-latest) (push) Has been cancelled
e2e-cache / Test yarn 1 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (18, macos-13) (push) Has been cancelled
e2e-cache / Test yarn 1 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (18, macos-latest) (push) Has been cancelled
e2e-cache / Test yarn 1 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (18, windows-latest) (push) Has been cancelled
e2e-cache / Test yarn 1 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (20, macos-13) (push) Has been cancelled
e2e-cache / Test yarn 1 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (20, macos-latest) (push) Has been cancelled
e2e-cache / Test yarn 1 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (20, windows-latest) (push) Has been cancelled
e2e-cache / Test yarn 1 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (24, macos-13) (push) Has been cancelled
e2e-cache / Test yarn 1 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (24, macos-latest) (push) Has been cancelled
e2e-cache / Test enabling cache if package manager field is present (Node ${{ matrix.node-version }}, ${{ matrix.os }}) (22, windows-latest) (push) Has been cancelled
versions / lts-syntax (lts/*, macos-13) (push) Has been cancelled
versions / lts-syntax (lts/*, windows-latest) (push) Has been cancelled
versions / lts-syntax (lts/-1, macos-13) (push) Has been cancelled
versions / lts-syntax (lts/-1, windows-latest) (push) Has been cancelled
versions / lts-syntax (lts/dubnium, windows-latest) (push) Has been cancelled
versions / lts-syntax (lts/erbium, macos-13) (push) Has been cancelled
versions / lts-syntax (lts/erbium, windows-latest) (push) Has been cancelled
versions / lts-syntax (lts/fermium, macos-13) (push) Has been cancelled
versions / lts-syntax (lts/fermium, windows-latest) (push) Has been cancelled
versions / v8-canary-syntax (20-v8-canary, macos-13) (push) Has been cancelled
versions / v8-canary-syntax (20-v8-canary, macos-latest) (push) Has been cancelled
e2e-cache / Test yarn 3 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (18, macos-13) (push) Has been cancelled
e2e-cache / Test yarn 3 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (18, macos-latest) (push) Has been cancelled
e2e-cache / Test yarn 3 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (18, windows-latest) (push) Has been cancelled
e2e-cache / Test yarn 3 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (20, macos-13) (push) Has been cancelled
e2e-cache / Test yarn 3 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (20, macos-latest) (push) Has been cancelled
e2e-cache / Test yarn 3 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (20, windows-latest) (push) Has been cancelled
e2e-cache / Test yarn 3 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (22, macos-13) (push) Has been cancelled
e2e-cache / Test yarn 3 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (22, macos-latest) (push) Has been cancelled
e2e-cache / Test yarn 3 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (22, windows-latest) (push) Has been cancelled
e2e-cache / Test yarn 3 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (24, macos-13) (push) Has been cancelled
e2e-cache / Test yarn 3 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (24, macos-latest) (push) Has been cancelled
e2e-cache / Test yarn 3 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (24, windows-latest) (push) Has been cancelled
e2e-cache / Test enabling cache if package manager field is present (Node ${{ matrix.node-version }}, ${{ matrix.os }}) (18, macos-13) (push) Has been cancelled
e2e-cache / Test enabling cache if package manager field is present (Node ${{ matrix.node-version }}, ${{ matrix.os }}) (18, macos-latest) (push) Has been cancelled
e2e-cache / Test enabling cache if package manager field is present (Node ${{ matrix.node-version }}, ${{ matrix.os }}) (18, windows-latest) (push) Has been cancelled
versions / lts-syntax (lts/dubnium, macos-13) (push) Has been cancelled
e2e-cache / Test enabling cache if package manager field is present (Node ${{ matrix.node-version }}, ${{ matrix.os }}) (20, macos-13) (push) Has been cancelled
e2e-cache / Test enabling cache if package manager field is present (Node ${{ matrix.node-version }}, ${{ matrix.os }}) (20, macos-latest) (push) Has been cancelled
e2e-cache / Test enabling cache if package manager field is present (Node ${{ matrix.node-version }}, ${{ matrix.os }}) (20, windows-latest) (push) Has been cancelled
e2e-cache / Test enabling cache if package manager field is present (Node ${{ matrix.node-version }}, ${{ matrix.os }}) (22, macos-13) (push) Has been cancelled
e2e-cache / Test enabling cache if package manager field is present (Node ${{ matrix.node-version }}, ${{ matrix.os }}) (22, macos-latest) (push) Has been cancelled
versions / v8-canary-syntax (20-v8-canary, windows-latest) (push) Has been cancelled
versions / v8-canary-syntax (20.0.0-v8-canary, macos-13) (push) Has been cancelled
versions / v8-canary-syntax (20.0.0-v8-canary, macos-latest) (push) Has been cancelled
versions / v8-canary-syntax (20.0.0-v8-canary, windows-latest) (push) Has been cancelled
versions / v8-canary-syntax (20.0.0-v8-canary20221101e50e45c9f8, macos-13) (push) Has been cancelled
versions / v8-canary-syntax (20.0.0-v8-canary20221101e50e45c9f8, macos-latest) (push) Has been cancelled
versions / v8-canary-syntax (20.0.0-v8-canary20221101e50e45c9f8, windows-latest) (push) Has been cancelled
versions / nightly-syntax (18.0.0-nightly, macos-13) (push) Has been cancelled
versions / nightly-syntax (18.0.0-nightly, macos-latest) (push) Has been cancelled
versions / nightly-syntax (18.0.0-nightly, windows-latest) (push) Has been cancelled
versions / nightly-syntax (20-nightly, macos-13) (push) Has been cancelled
versions / nightly-syntax (20-nightly, macos-latest) (push) Has been cancelled
versions / nightly-syntax (20-nightly, windows-latest) (push) Has been cancelled
versions / nightly-syntax (21-nightly, macos-13) (push) Has been cancelled
versions / nightly-syntax (21-nightly, macos-latest) (push) Has been cancelled
versions / nightly-syntax (21-nightly, windows-latest) (push) Has been cancelled
versions / rc-syntax (18.0.0-rc.2, macos-13) (push) Has been cancelled
versions / rc-syntax (18.0.0-rc.2, macos-latest) (push) Has been cancelled
versions / rc-syntax (18.0.0-rc.2, windows-latest) (push) Has been cancelled
versions / rc-syntax (19.0.0-rc.0, macos-13) (push) Has been cancelled
versions / version-file (package.json, windows-latest) (push) Has been cancelled
versions / rc-syntax (19.0.0-rc.0, macos-latest) (push) Has been cancelled
versions / rc-syntax (19.0.0-rc.0, windows-latest) (push) Has been cancelled
versions / rc-syntax (20.0.0-rc.1, macos-13) (push) Has been cancelled
versions / rc-syntax (20.0.0-rc.1, macos-latest) (push) Has been cancelled
versions / version-file-volta (macos-13) (push) Has been cancelled
versions / rc-syntax (20.0.0-rc.1, windows-latest) (push) Has been cancelled
versions / manifest (18.20.0, macos-13) (push) Has been cancelled
versions / manifest (18.20.0, macos-latest) (push) Has been cancelled
versions / manifest (18.20.0, windows-latest) (push) Has been cancelled
versions / manifest (20.10.0, macos-13) (push) Has been cancelled
versions / manifest (20.10.0, macos-latest) (push) Has been cancelled
versions / node-latest-aliases (current, macos-13) (push) Has been cancelled
versions / node-latest-aliases (current, macos-latest) (push) Has been cancelled
versions / node-latest-aliases (current, windows-latest) (push) Has been cancelled
versions / node-latest-aliases (latest, macos-13) (push) Has been cancelled
versions / node-latest-aliases (latest, macos-latest) (push) Has been cancelled
versions / node-latest-aliases (latest, windows-latest) (push) Has been cancelled
versions / node-latest-aliases (node, macos-13) (push) Has been cancelled
versions / node-latest-aliases (node, macos-latest) (push) Has been cancelled
versions / node-latest-aliases (node, windows-latest) (push) Has been cancelled
Update configuration files / Update configuration files (push) Failing after 0s
CodeQL analysis / CodeQL analysis (push) Failing after 0s
* Bump prettier from 2.8.8 to 3.6.2 Bumps [prettier](https://github.com/prettier/prettier) from 2.8.8 to 3.6.2. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/2.8.8...3.6.2) --- updated-dependencies: - dependency-name: prettier dependency-version: 3.6.2 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * check failure fix --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Aparna Jyothi <aparnajyothi-y@github.com>
298 lines
8.3 KiB
TypeScript
298 lines
8.3 KiB
TypeScript
import * as core from '@actions/core';
|
|
import * as tc from '@actions/tool-cache';
|
|
import path from 'path';
|
|
|
|
import BaseDistribution from '../base-distribution';
|
|
import {NodeInputs, INodeVersion, INodeVersionInfo} from '../base-models';
|
|
|
|
interface INodeRelease extends tc.IToolRelease {
|
|
lts?: string;
|
|
}
|
|
|
|
export default class OfficialBuilds extends BaseDistribution {
|
|
constructor(nodeInfo: NodeInputs) {
|
|
super(nodeInfo);
|
|
}
|
|
|
|
public async setupNodeJs() {
|
|
let manifest: tc.IToolRelease[] | undefined;
|
|
let nodeJsVersions: INodeVersion[] | undefined;
|
|
const osArch = this.translateArchToDistUrl(this.nodeInfo.arch);
|
|
|
|
if (this.isLtsAlias(this.nodeInfo.versionSpec)) {
|
|
core.info('Attempt to resolve LTS alias from manifest...');
|
|
|
|
// No try-catch since it's not possible to resolve LTS alias without manifest
|
|
manifest = await this.getManifest();
|
|
|
|
this.nodeInfo.versionSpec = this.resolveLtsAliasFromManifest(
|
|
this.nodeInfo.versionSpec,
|
|
this.nodeInfo.stable,
|
|
manifest
|
|
);
|
|
}
|
|
|
|
if (this.isLatestSyntax(this.nodeInfo.versionSpec)) {
|
|
nodeJsVersions = await this.getNodeJsVersions();
|
|
const versions = this.filterVersions(nodeJsVersions);
|
|
this.nodeInfo.versionSpec = this.evaluateVersions(versions);
|
|
|
|
core.info('getting latest node version...');
|
|
}
|
|
|
|
if (this.nodeInfo.checkLatest) {
|
|
core.info('Attempt to resolve the latest version from manifest...');
|
|
const resolvedVersion = await this.resolveVersionFromManifest(
|
|
this.nodeInfo.versionSpec,
|
|
this.nodeInfo.stable,
|
|
osArch,
|
|
manifest
|
|
);
|
|
if (resolvedVersion) {
|
|
this.nodeInfo.versionSpec = resolvedVersion;
|
|
core.info(`Resolved as '${resolvedVersion}'`);
|
|
} else {
|
|
core.info(
|
|
`Failed to resolve version ${this.nodeInfo.versionSpec} from manifest`
|
|
);
|
|
}
|
|
}
|
|
|
|
let toolPath = this.findVersionInHostedToolCacheDirectory();
|
|
|
|
if (toolPath) {
|
|
core.info(`Found in cache @ ${toolPath}`);
|
|
this.addToolPath(toolPath);
|
|
return;
|
|
}
|
|
|
|
let downloadPath = '';
|
|
try {
|
|
core.info(`Attempting to download ${this.nodeInfo.versionSpec}...`);
|
|
|
|
const versionInfo = await this.getInfoFromManifest(
|
|
this.nodeInfo.versionSpec,
|
|
this.nodeInfo.stable,
|
|
osArch,
|
|
manifest
|
|
);
|
|
|
|
if (versionInfo) {
|
|
core.info(
|
|
`Acquiring ${versionInfo.resolvedVersion} - ${versionInfo.arch} from ${versionInfo.downloadUrl}`
|
|
);
|
|
downloadPath = await tc.downloadTool(
|
|
versionInfo.downloadUrl,
|
|
undefined,
|
|
this.nodeInfo.mirror ? this.nodeInfo.mirrorToken : this.nodeInfo.auth
|
|
);
|
|
|
|
if (downloadPath) {
|
|
toolPath = await this.extractArchive(
|
|
downloadPath,
|
|
versionInfo,
|
|
false
|
|
);
|
|
}
|
|
} else {
|
|
core.info(
|
|
`Not found in manifest. Falling back to download directly from ${
|
|
this.nodeInfo.mirror || 'Node'
|
|
}`
|
|
);
|
|
}
|
|
} catch (err) {
|
|
// Rate limit?
|
|
if (
|
|
err instanceof tc.HTTPError &&
|
|
(err.httpStatusCode === 403 || err.httpStatusCode === 429)
|
|
) {
|
|
core.info(
|
|
`Received HTTP status code ${err.httpStatusCode}. This usually indicates the rate limit has been exceeded`
|
|
);
|
|
} else {
|
|
core.info((err as Error).message);
|
|
}
|
|
core.debug((err as Error).stack ?? 'empty stack');
|
|
core.info('Falling back to download directly from Node');
|
|
}
|
|
|
|
if (!toolPath) {
|
|
toolPath = await this.downloadDirectlyFromNode();
|
|
}
|
|
|
|
if (this.osPlat != 'win32') {
|
|
toolPath = path.join(toolPath, 'bin');
|
|
}
|
|
|
|
core.addPath(toolPath);
|
|
}
|
|
|
|
protected addToolPath(toolPath: string) {
|
|
if (this.osPlat != 'win32') {
|
|
toolPath = path.join(toolPath, 'bin');
|
|
}
|
|
|
|
core.addPath(toolPath);
|
|
}
|
|
|
|
protected async downloadDirectlyFromNode() {
|
|
const nodeJsVersions = await this.getNodeJsVersions();
|
|
const versions = this.filterVersions(nodeJsVersions);
|
|
const evaluatedVersion = this.evaluateVersions(versions);
|
|
|
|
if (!evaluatedVersion) {
|
|
throw new Error(
|
|
`Unable to find Node version '${this.nodeInfo.versionSpec}' for platform ${this.osPlat} and architecture ${this.nodeInfo.arch}.`
|
|
);
|
|
}
|
|
|
|
const toolName = this.getNodejsDistInfo(evaluatedVersion);
|
|
|
|
try {
|
|
const toolPath = await this.downloadNodejs(toolName);
|
|
return toolPath;
|
|
} catch (error) {
|
|
if (error instanceof tc.HTTPError && error.httpStatusCode === 404) {
|
|
core.warning(
|
|
`Node version ${this.nodeInfo.versionSpec} for platform ${this.osPlat} and architecture ${this.nodeInfo.arch} was found but failed to download. ` +
|
|
'This usually happens when downloadable binaries are not fully updated at https://nodejs.org/. ' +
|
|
'To resolve this issue you may either fall back to the older version or try again later.'
|
|
);
|
|
}
|
|
|
|
throw error;
|
|
}
|
|
}
|
|
|
|
protected evaluateVersions(versions: string[]): string {
|
|
let version = '';
|
|
|
|
if (this.isLatestSyntax(this.nodeInfo.versionSpec)) {
|
|
core.info(`getting latest node version...`);
|
|
return versions[0];
|
|
}
|
|
|
|
version = super.evaluateVersions(versions);
|
|
|
|
return version;
|
|
}
|
|
|
|
protected getDistributionUrl(mirror: string): string {
|
|
const url = mirror || 'https://nodejs.org';
|
|
return `${url}/dist`;
|
|
}
|
|
|
|
private getManifest(): Promise<tc.IToolRelease[]> {
|
|
core.debug('Getting manifest from actions/node-versions@main');
|
|
return tc.getManifestFromRepo(
|
|
'actions',
|
|
'node-versions',
|
|
this.nodeInfo.mirror ? this.nodeInfo.mirrorToken : this.nodeInfo.auth,
|
|
'main'
|
|
);
|
|
}
|
|
|
|
private resolveLtsAliasFromManifest(
|
|
versionSpec: string,
|
|
stable: boolean,
|
|
manifest: INodeRelease[]
|
|
): string {
|
|
const alias = versionSpec.split('lts/')[1]?.toLowerCase();
|
|
|
|
if (!alias) {
|
|
throw new Error(
|
|
`Unable to parse LTS alias for Node version '${versionSpec}'`
|
|
);
|
|
}
|
|
|
|
core.debug(`LTS alias '${alias}' for Node version '${versionSpec}'`);
|
|
|
|
// Supported formats are `lts/<alias>`, `lts/*`, and `lts/-n`. Where asterisk means highest possible LTS and -n means the nth-highest.
|
|
const n = Number(alias);
|
|
const aliases = Object.fromEntries(
|
|
manifest
|
|
.filter(x => x.lts && x.stable === stable)
|
|
.map(x => [x.lts!.toLowerCase(), x])
|
|
.reverse()
|
|
);
|
|
const numbered = Object.values(aliases);
|
|
const release =
|
|
alias === '*'
|
|
? numbered[numbered.length - 1]
|
|
: n < 0
|
|
? numbered[numbered.length - 1 + n]
|
|
: aliases[alias];
|
|
|
|
if (!release) {
|
|
throw new Error(
|
|
`Unable to find LTS release '${alias}' for Node version '${versionSpec}'.`
|
|
);
|
|
}
|
|
|
|
core.debug(
|
|
`Found LTS release '${release.version}' for Node version '${versionSpec}'`
|
|
);
|
|
|
|
return release.version.split('.')[0];
|
|
}
|
|
|
|
private async resolveVersionFromManifest(
|
|
versionSpec: string,
|
|
stable: boolean,
|
|
osArch: string,
|
|
manifest: tc.IToolRelease[] | undefined
|
|
): Promise<string | undefined> {
|
|
try {
|
|
const info = await this.getInfoFromManifest(
|
|
versionSpec,
|
|
stable,
|
|
osArch,
|
|
manifest
|
|
);
|
|
return info?.resolvedVersion;
|
|
} catch (err) {
|
|
core.info('Unable to resolve version from manifest...');
|
|
core.debug((err as Error).message);
|
|
}
|
|
}
|
|
|
|
private async getInfoFromManifest(
|
|
versionSpec: string,
|
|
stable: boolean,
|
|
osArch: string,
|
|
manifest: tc.IToolRelease[] | undefined
|
|
): Promise<INodeVersionInfo | null> {
|
|
let info: INodeVersionInfo | null = null;
|
|
if (!manifest) {
|
|
core.debug('No manifest cached');
|
|
manifest = await this.getManifest();
|
|
}
|
|
|
|
const rel = await tc.findFromManifest(
|
|
versionSpec,
|
|
stable,
|
|
manifest,
|
|
osArch
|
|
);
|
|
|
|
if (rel && rel.files.length > 0) {
|
|
info = <INodeVersionInfo>{};
|
|
info.resolvedVersion = rel.version;
|
|
info.arch = rel.files[0].arch;
|
|
info.downloadUrl = rel.files[0].download_url;
|
|
info.fileName = rel.files[0].filename;
|
|
}
|
|
|
|
return info;
|
|
}
|
|
|
|
private isLtsAlias(versionSpec: string): boolean {
|
|
return versionSpec.startsWith('lts/');
|
|
}
|
|
|
|
private isLatestSyntax(versionSpec): boolean {
|
|
return ['current', 'latest', 'node'].includes(versionSpec);
|
|
}
|
|
}
|