Skip to content

Commit

Permalink
Update package version for Node.js v20
Browse files Browse the repository at this point in the history
  • Loading branch information
thadguidry committed Apr 2, 2024
1 parent 7036dc1 commit 665c0f3
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 30 deletions.
4 changes: 2 additions & 2 deletions dist/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7867,7 +7867,7 @@ async function deleteReleases(octokit, qualifiedRepo, tagName) {
}
function getRepo() {
const inputRepoData = (0, import_core.getInput)("repo");
const [inputOwner, inputRepo] = inputRepoData == null ? void 0 : inputRepoData.split("/");
const [inputOwner, inputRepo] = inputRepoData?.split("/");
if (inputRepo && inputOwner) {
return {
repo: inputRepo,
Expand Down Expand Up @@ -7942,7 +7942,7 @@ async function run(inputs) {
`an invalid value for shouldDeleteReleases was provided: ${shouldDeleteReleases}`
);
validateInputField(
(repo == null ? void 0 : repo.owner) && (repo == null ? void 0 : repo.repo),
repo?.owner && repo?.repo,
"An invalid repo was provided!"
);
log("\u{1F3F7}", `given tag is "${tagName}"`);
Expand Down
52 changes: 26 additions & 26 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "delete-tag-and-release",
"version": "v0.2.1",
"version": "v1.1",
"main": "dist/index.js",
"repository": {
"type": "git",
Expand All @@ -9,7 +9,7 @@
"keywords": [],
"scripts": {
"check:types": "tsc --noEmit",
"package": "npm run check:types && esbuild main.ts --bundle --platform=node --target=node16 --outfile=dist/main.js",
"package": "npm run check:types && esbuild main.ts --bundle --platform=node --target=node20 --outfile=dist/main.js",
"test": "jest index.spec.ts",
"lint": "npm run check:types && eslint .",
"lint:fix": "eslint . --fix && npm run check:types"
Expand Down

0 comments on commit 665c0f3

Please sign in to comment.