Skip to content

Commit 413dd15

Browse files
committed
fix: build for node@20 using commonjs
The `@actions/core` package seems to break with the `esm` compilation at the moment. See issue #5 for more information.
1 parent 0d7891b commit 413dd15

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ build.compile:
5757
--bundle \
5858
--platform=node \
5959
--target=node20 \
60-
--format=esm \
60+
--format=cjs \
6161
--tree-shaking=true \
62-
--outfile=build/action.mjs
62+
--outfile=build/action.cjs
6363

6464
build.compile.verify:
65-
test -f build/action.mjs
65+
test -f build/action.cjs

action.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ branding:
99

1010
runs:
1111
using: node20
12-
main: build/action.mjs
12+
main: build/action.cjs
1313

1414
inputs:
1515
version:

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"version": "1.0.0",
3-
"type": "module",
3+
"type": "commonjs",
44
"name": "@matt-usurp/validate-semver",
55
"description": "A GitHub action for validating and cleanse semver inputs",
66
"repository": {

0 commit comments

Comments
 (0)