Skip to content

Commit

Permalink
fix build problem
Browse files Browse the repository at this point in the history
Signed-off-by: Cliff Colvin <[email protected]>
  • Loading branch information
cliffcolvin committed Aug 6, 2024
1 parent 59397e6 commit 77e0fc2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ inputs:
required: false
default: 'both'
runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
branding:
icon: 'check-square'
Expand Down
7 changes: 6 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@ async function run() {
core.setFailed(`PR must include a task number in the format ${projectKey}-XXXX in ${location}.`);
}
else {
core.info(`Task number found in PR ${check === 'both' ? 'title or description' : check}.`);
if (check === 'both') {
core.info('Task number found in PR title or description.');
}
else {
core.info(`Task number found in PR ${check}.`);
}
}
}
catch (error) {
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "jira-taskcheck-action",
"version": "0.0.1",
"version": "0.0.2",
"license": "MIT",
"scripts": {
"start": "tsc -w",
"build": "tsc -p tsconfig.json",
"build": "ncc build src/index.ts -o dist",
"test": "jest",
"lint": "eslint . --ext .ts,.tsx",
"prepare": "npm run build"
Expand All @@ -17,6 +17,7 @@
"@types/jest": "^29.5.12",
"jest": "^29.7.0",
"ts-jest": "^29.2.4",
"typescript": "^5.5.4"
"typescript": "^5.5.4",
"@vercel/ncc": "^0.36.1"
}
}

0 comments on commit 77e0fc2

Please sign in to comment.