From 665c0f3a342784f16a108a795106914cd4ffe249 Mon Sep 17 00:00:00 2001 From: Thad Guidry Date: Tue, 2 Apr 2024 10:43:32 +0800 Subject: [PATCH 1/2] Update package version for Node.js v20 --- dist/main.js | 4 ++-- package-lock.json | 52 +++++++++++++++++++++++------------------------ package.json | 4 ++-- 3 files changed, 30 insertions(+), 30 deletions(-) diff --git a/dist/main.js b/dist/main.js index 9fa0101..b8e38f0 100644 --- a/dist/main.js +++ b/dist/main.js @@ -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, @@ -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}"`); diff --git a/package-lock.json b/package-lock.json index 4b5f8aa..d69c9f1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "delete-tag-and-release", - "version": "v0.2.1", + "version": "v1.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "delete-tag-and-release", - "version": "v0.2.1", + "version": "v1.1", "license": "ISC", "dependencies": { "@actions/core": "^1.10.0", @@ -1483,9 +1483,9 @@ } }, "node_modules/@typescript-eslint/eslint-plugin/node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, "dependencies": { "lru-cache": "^6.0.0" @@ -1609,9 +1609,9 @@ } }, "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, "dependencies": { "lru-cache": "^6.0.0" @@ -1650,9 +1650,9 @@ } }, "node_modules/@typescript-eslint/utils/node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, "dependencies": { "lru-cache": "^6.0.0" @@ -2057,9 +2057,9 @@ } }, "node_modules/builtins/node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, "dependencies": { "lru-cache": "^6.0.0" @@ -2787,9 +2787,9 @@ } }, "node_modules/eslint-plugin-n/node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, "dependencies": { "lru-cache": "^6.0.0" @@ -4506,9 +4506,9 @@ } }, "node_modules/jest-snapshot/node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, "dependencies": { "lru-cache": "^6.0.0" @@ -5411,9 +5411,9 @@ } }, "node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, "bin": { "semver": "bin/semver.js" @@ -5746,9 +5746,9 @@ } }, "node_modules/ts-jest/node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, "dependencies": { "lru-cache": "^6.0.0" diff --git a/package.json b/package.json index 0d47da6..95f0dde 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "delete-tag-and-release", - "version": "v0.2.1", + "version": "v1.1", "main": "dist/index.js", "repository": { "type": "git", @@ -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" From dfdd2fa076a156f93dcc19e35b383589096d7731 Mon Sep 17 00:00:00 2001 From: Thad Guidry Date: Tue, 2 Apr 2024 10:48:05 +0800 Subject: [PATCH 2/2] Update README example for v1.1 --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 41876cf..3e20af7 100644 --- a/README.md +++ b/README.md @@ -4,12 +4,12 @@ Add following step to your workflow: ```yaml -- uses: dev-drprasad/delete-tag-and-release@v1.2 +- uses: dev-drprasad/delete-tag-and-release@v1.1 with: tag_name: v0.1.2 #(required) - The name of the tag to delete. This is expected to be solely the tag name, not the name of a git reference. - delete_release: true #(optional) default: true - also delete releases and their assets that are associated to the tag name + delete_release: true #(optional) default: true - also delete all releases and their assets that are associated to the tag name repo: / #(optional) default: repo running this action - the target repository. - github_token: ${{ secrets.GITHUB_TOKEN }} # (required) - a GitHub token with write access to the repo that needs to be modified + github_token: ${{ secrets.GITHUB_TOKEN }} # (required) - a GitHub token with write access to the repo where tags and releases will be searched and deleted ``` ## Developing