Skip to content

Commit

Permalink
fix: convert to CommonJS to make @vercel/ncc happy
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Apr 26, 2021
1 parent ffd7c24 commit 7e4e730
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import core from "@actions/core";
const core = require("@actions/core");

const greeting = core.getInput("greeting");
const output = `Hello, ${greeting}!`;
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "hello-world-js-action",
"version": "1.0.0",
"private": true,
"type": "module",
"description": "A simple GitHub Action written in JavaScript",
"main": "dist/index.js",
"scripts": {
Expand Down

0 comments on commit 7e4e730

Please sign in to comment.