We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2422580 commit f6d61bcCopy full SHA for f6d61bc
index.js
@@ -1,9 +1,12 @@
1
+import { createRequire } from "module";
2
+const require = createRequire(import.meta.url);
3
+
4
const core = require('@actions/core');
5
const { context, GitHub } = require('@actions/github');
6
const fs = require('fs').promises;
7
const path = require('path');
8
const axios = require('axios');
-const { Octokit, App } = require("octokit");
9
+import { Octokit, App } from "octokit";
10
11
const packagesEnginesPath = 'engines';
12
package.json
@@ -3,6 +3,7 @@
"version": "1.0.0",
"description": "",
"main": "index.js",
+ "type": "module",
"repository": {
"type": "git",
"url": "git+https://github.com/luxtorpeda-dev/action-update-engine-version.git"
0 commit comments