Skip to content

Commit f6d61bc

Browse files
committed
Fix
1 parent 2422580 commit f6d61bc

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
import { createRequire } from "module";
2+
const require = createRequire(import.meta.url);
3+
14
const core = require('@actions/core');
25
const { context, GitHub } = require('@actions/github');
36
const fs = require('fs').promises;
47
const path = require('path');
58
const axios = require('axios');
6-
const { Octokit, App } = require("octokit");
9+
import { Octokit, App } from "octokit";
710

811
const packagesEnginesPath = 'engines';
912

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "1.0.0",
44
"description": "",
55
"main": "index.js",
6+
"type": "module",
67
"repository": {
78
"type": "git",
89
"url": "git+https://github.com/luxtorpeda-dev/action-update-engine-version.git"

0 commit comments

Comments
 (0)