Skip to content

Commit 82600fe

Browse files
authored
Merge pull request dev-drprasad#47 from thadguidry/master
Update package for Node.js v20
2 parents 7036dc1 + dfdd2fa commit 82600fe

File tree

4 files changed

+33
-33
lines changed

4 files changed

+33
-33
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
Add following step to your workflow:
55

66
```yaml
7-
- uses: dev-drprasad/delete-tag-and-release@v1.2
7+
- uses: dev-drprasad/delete-tag-and-release@v1.1
88
with:
99
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.
10-
delete_release: true #(optional) default: true - also delete releases and their assets that are associated to the tag name
10+
delete_release: true #(optional) default: true - also delete all releases and their assets that are associated to the tag name
1111
repo: <owner>/<repoName> #(optional) default: repo running this action - the target repository.
12-
github_token: ${{ secrets.GITHUB_TOKEN }} # (required) - a GitHub token with write access to the repo that needs to be modified
12+
github_token: ${{ secrets.GITHUB_TOKEN }} # (required) - a GitHub token with write access to the repo where tags and releases will be searched and deleted
1313
```
1414
1515
## Developing

dist/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7867,7 +7867,7 @@ async function deleteReleases(octokit, qualifiedRepo, tagName) {
78677867
}
78687868
function getRepo() {
78697869
const inputRepoData = (0, import_core.getInput)("repo");
7870-
const [inputOwner, inputRepo] = inputRepoData == null ? void 0 : inputRepoData.split("/");
7870+
const [inputOwner, inputRepo] = inputRepoData?.split("/");
78717871
if (inputRepo && inputOwner) {
78727872
return {
78737873
repo: inputRepo,
@@ -7942,7 +7942,7 @@ async function run(inputs) {
79427942
`an invalid value for shouldDeleteReleases was provided: ${shouldDeleteReleases}`
79437943
);
79447944
validateInputField(
7945-
(repo == null ? void 0 : repo.owner) && (repo == null ? void 0 : repo.repo),
7945+
repo?.owner && repo?.repo,
79467946
"An invalid repo was provided!"
79477947
);
79487948
log("\u{1F3F7}", `given tag is "${tagName}"`);

package-lock.json

Lines changed: 26 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "delete-tag-and-release",
3-
"version": "v0.2.1",
3+
"version": "v1.1",
44
"main": "dist/index.js",
55
"repository": {
66
"type": "git",
@@ -9,7 +9,7 @@
99
"keywords": [],
1010
"scripts": {
1111
"check:types": "tsc --noEmit",
12-
"package": "npm run check:types && esbuild main.ts --bundle --platform=node --target=node16 --outfile=dist/main.js",
12+
"package": "npm run check:types && esbuild main.ts --bundle --platform=node --target=node20 --outfile=dist/main.js",
1313
"test": "jest index.spec.ts",
1414
"lint": "npm run check:types && eslint .",
1515
"lint:fix": "eslint . --fix && npm run check:types"

0 commit comments

Comments
 (0)