Refactored to use esbuild

This commit is contained in:
Corey Butler 2022-10-12 20:49:37 -05:00
parent a4acf0cff0
commit bacfccaa39
No known key found for this signature in database
GPG Key ID: 11C5CD9E1B4C7F8F
11 changed files with 29110 additions and 16 deletions

View File

@ -62,4 +62,4 @@ outputs:
description: \"yes\" or \"no\", indicating the tag represents a semantic version build. description: \"yes\" or \"no\", indicating the tag represents a semantic version build.
runs: runs:
using: "node16" using: "node16"
main: "app/main.js" main: "dist/main.js"

27315
dist/main.js vendored Normal file

File diff suppressed because one or more lines are too long

1778
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,19 +1,27 @@
{ {
"name": "action-autotag-test", "name": "autotag-action",
"version": "1.1.1", "version": "1.1.3",
"description": "This is a test file for the action.", "private": true,
"main": "index.js", "description": "Automatically create a tag whenever the version changes in package.json",
"dependencies": {}, "main": "app/main.js",
"devDependencies": {}, "dependencies": {
"@actions/core": "^1.10.0",
"@actions/github": "^2.1.0",
"semver": "^7.3.4"
},
"devDependencies": {
"esbuild": "^0.15.10"
},
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1",
"prepare": "esbuild --bundle ./src/main.js --platform=node --outdir=dist"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/ButlerLogic/action-autotag.git" "url": "git+https://github.com/ButlerLogic/action-autotag.git"
}, },
"author": "", "author": "Corey Butler",
"license": "ISC", "license": "MIT",
"bugs": { "bugs": {
"url": "https://github.com/ButlerLogic/action-autotag/issues" "url": "https://github.com/ButlerLogic/action-autotag/issues"
}, },

View File

@ -18,10 +18,5 @@
], ],
"author": "ButlerLogic", "author": "ButlerLogic",
"license": "MIT", "license": "MIT",
"dependencies": {
"@actions/core": "^1.10.0",
"@actions/github": "^2.1.0",
"semver": "^7.3.4"
},
"type": "module" "type": "module"
} }