Skip to content

Commit 58a1b2f

Browse files
committed
build: support ESM-only @actions/* v3 packages
The new @actions/* v3/v4 packages are ESM-only ("type": "module", exports only has "import" condition). This breaks the CJS-based build pipeline (tsc → esbuild), Jest test runner, and Node.js scripts that resolve these packages. - Add `conditions: ['import']` to esbuild config so bundling resolves ESM export conditions - Add `--conditions=import` to the update-action-ymls Node.js script - Add custom Jest resolver (jest-resolver.js) for @actions/* packages - Configure Jest to transform ESM node_modules with ts-jest (allowJs) - Bump @actions/core, exec, io, http-client, tool-cache, cache, and artifact to v3/v4 across all workspaces
1 parent 5d97986 commit 58a1b2f

File tree

50 files changed

+3094
-3725
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+3094
-3725
lines changed

b2-workflow/dist/index.js

Lines changed: 152 additions & 152 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

b2-workflow/dist/index.js.map

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

b2-workflow/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
"author": "",
1313
"license": "Boost Software License 1.0",
1414
"dependencies": {
15-
"@actions/core": "^2.0.1",
16-
"@actions/exec": "^2.0.0",
17-
"@actions/io": "^2.0.0",
15+
"@actions/core": "^3.0.0",
16+
"@actions/exec": "^3.0.0",
17+
"@actions/io": "^3.0.2",
1818
"action-schema": "*",
1919
"pretty-errors": "*",
2020
"source-map-support": "^0.5.21",
2121
"trace-commands": "*"
2222
},
2323
"devDependencies": {
24-
"esbuild": "^0.27.2"
24+
"esbuild": "^0.27.3"
2525
}
2626
}

boost-clone/dist/index.js

Lines changed: 236 additions & 304 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

boost-clone/dist/index.js.map

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

boost-clone/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@
1212
"author": "",
1313
"license": "Boost Software License 1.0",
1414
"dependencies": {
15-
"@actions/cache": "^5.0.1",
16-
"@actions/core": "^2.0.1",
17-
"@actions/exec": "^2.0.0",
18-
"@actions/tool-cache": "^2.0.2",
15+
"@actions/cache": "^6.0.0",
16+
"@actions/core": "^3.0.0",
17+
"@actions/exec": "^3.0.0",
18+
"@actions/tool-cache": "^4.0.0",
1919
"action-schema": "*",
2020
"gh-inputs": "*",
21-
"semver": "^7.7.3",
21+
"semver": "^7.7.4",
2222
"setup-program": "*",
2323
"trace-commands": "*",
2424
"pretty-errors": "*",
2525
"source-map-support": "^0.5.21"
2626
},
2727
"devDependencies": {
2828
"@types/semver": "^7.7.1",
29-
"esbuild": "^0.27.2"
29+
"esbuild": "^0.27.3"
3030
}
3131
}

cmake-workflow/dist/index.js

Lines changed: 229 additions & 290 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmake-workflow/dist/index.js.map

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmake-workflow/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
"author": "",
1313
"license": "Boost Software License 1.0",
1414
"dependencies": {
15-
"@actions/artifact": "^5.0.1",
16-
"@actions/core": "^2.0.1",
17-
"@actions/exec": "^2.0.0",
18-
"@actions/io": "^2.0.0",
15+
"@actions/artifact": "^6.1.0",
16+
"@actions/core": "^3.0.0",
17+
"@actions/exec": "^3.0.0",
18+
"@actions/io": "^3.0.2",
1919
"action-schema": "*",
2020
"pretty-errors": "*",
2121
"setup-cmake": "*",
@@ -24,6 +24,6 @@
2424
"trace-commands": "*"
2525
},
2626
"devDependencies": {
27-
"esbuild": "^0.27.2"
27+
"esbuild": "^0.27.3"
2828
}
2929
}

common/action-schema/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
"author": "",
1515
"license": "Boost Software License 1.0",
1616
"dependencies": {
17-
"@actions/core": "^2.0.1",
17+
"@actions/core": "^3.0.0",
1818
"gh-inputs": "*",
1919
"trace-commands": "*",
2020
"pretty-errors": "*",
21-
"yaml": "^2.7.1",
21+
"yaml": "^2.8.2",
2222
"source-map-support": "^0.5.21"
2323
},
2424
"devDependencies": {
25-
"esbuild": "^0.27.2"
25+
"esbuild": "^0.27.3"
2626
}
2727
}

0 commit comments

Comments
 (0)