Skip to content

Commit

Permalink
fix: downgrade node for Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroki0525 committed Dec 29, 2022
1 parent b83d1fe commit eef57e9
Show file tree
Hide file tree
Showing 4 changed files with 152 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.12.1
16.19.0
165 changes: 147 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"homepage": "https://github.com/hiroki0525/delete-vercel-preview-urls#readme",
"engines": {
"node": "18.x"
"node": "16.x"
},
"devDependencies": {
"@octokit/webhooks-definitions": "^3.67.3",
Expand All @@ -37,6 +37,7 @@
},
"dependencies": {
"@actions/core": "^1.10.0",
"@actions/github": "^5.1.1"
"@actions/github": "^5.1.1",
"node-fetch": "^3.3.0"
}
}
1 change: 1 addition & 0 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { setTimeout } from "timers/promises";
import * as core from "@actions/core";
import * as github from "@actions/github";
import fetch from "node-fetch";

if (github.context.eventName !== "delete") {
throw new Error("This action only supports delete event.");
Expand Down

0 comments on commit eef57e9

Please sign in to comment.