Skip to content

Commit

Permalink
Changing version (#3)
Browse files Browse the repository at this point in the history
* Changing version

* Adding a variable

* Changing scripts
  • Loading branch information
danitico authored Mar 16, 2020
1 parent 9b5d50a commit 65a8cb0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ jobs:
node-version: '12.x'

- name: danger-action-tnp
uses: TheNeonProject/[email protected]
uses: TheNeonProject/[email protected]
with:
JiraTag: 'hola'
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as cp from 'child_process'
async function run() {
try {
process.env['JIRA_TAG'] = core.getInput('JiraTag')
cp.execSync("npm danger")
cp.execSync("npm run danger")

} catch (error) {
core.setFailed(error.message);
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"description": "",
"main": "index.js",
"scripts": {
"coverage": "jest --collectCoverage --coverageReporters=json-summary",
"eslint": "eslint . -f json -o eslint.json",
"danger": "danger ci"
"coverage": "npx jest --collectCoverage --coverageReporters=json-summary",
"eslint": "npx eslint . -f json -o eslint.json",
"danger": "npx danger ci"
},
"keywords": [],
"author": "",
Expand Down

0 comments on commit 65a8cb0

Please sign in to comment.