mirror of
https://gitea.com/actions/gitea-release-action.git
synced 2024-11-10 10:21:07 +07:00
fix: move main.js to root dir, fix ncc build error
ref: https://github.com/vercel/ncc/issues/791
This commit is contained in:
parent
8e3a904f48
commit
17144997f2
362
dist/index.js
vendored
362
dist/index.js
vendored
File diff suppressed because it is too large
Load Diff
3
dist/package.json
vendored
Normal file
3
dist/package.json
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"type": "module"
|
||||||
|
}
|
@ -8,6 +8,8 @@ import path from 'path'
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
try {
|
try {
|
||||||
|
console.log(core)
|
||||||
|
console.log(gitea)
|
||||||
const server_url = core.getInput("server_url")
|
const server_url = core.getInput("server_url")
|
||||||
const name = core.getInput("name")
|
const name = core.getInput("name")
|
||||||
const body = core.getInput("body")
|
const body = core.getInput("body")
|
5
package-lock.json
generated
5
package-lock.json
generated
@ -11,8 +11,10 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.10.1",
|
"@actions/core": "^1.10.1",
|
||||||
"@actions/github": "^6.0.0",
|
"@actions/github": "^6.0.0",
|
||||||
"@vercel/ncc": "^0.38.1",
|
|
||||||
"gitea-api": "^1.17.3-1"
|
"gitea-api": "^1.17.3-1"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@vercel/ncc": "^0.38.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@actions/core": {
|
"node_modules/@actions/core": {
|
||||||
@ -174,6 +176,7 @@
|
|||||||
"version": "0.38.1",
|
"version": "0.38.1",
|
||||||
"resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.38.1.tgz",
|
"resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.38.1.tgz",
|
||||||
"integrity": "sha512-IBBb+iI2NLu4VQn3Vwldyi2QwaXt5+hTyh58ggAMoCGE6DJmPvwL3KPBWcJl1m9LYPChBLE980Jw+CS4Wokqxw==",
|
"integrity": "sha512-IBBb+iI2NLu4VQn3Vwldyi2QwaXt5+hTyh58ggAMoCGE6DJmPvwL3KPBWcJl1m9LYPChBLE980Jw+CS4Wokqxw==",
|
||||||
|
"dev": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
"ncc": "dist/ncc/cli.js"
|
"ncc": "dist/ncc/cli.js"
|
||||||
}
|
}
|
||||||
|
12
package.json
12
package.json
@ -2,11 +2,13 @@
|
|||||||
"name": "gitea-release-action",
|
"name": "gitea-release-action",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "src/main.js",
|
"type": "module",
|
||||||
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"package": "ncc build src/main.js -o dist",
|
"package": "ncc build main.js -o dist",
|
||||||
"build": "ncc build src/main.js"
|
"build": "ncc build main.js",
|
||||||
|
"start": "node main.js"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "",
|
"author": "",
|
||||||
@ -14,7 +16,9 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.10.1",
|
"@actions/core": "^1.10.1",
|
||||||
"@actions/github": "^6.0.0",
|
"@actions/github": "^6.0.0",
|
||||||
"@vercel/ncc": "^0.38.1",
|
|
||||||
"gitea-api": "^1.17.3-1"
|
"gitea-api": "^1.17.3-1"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@vercel/ncc": "^0.38.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user