kick off action using custom npm script and prefix arg
this accepts a prefix path which should be platform-agnostic.
This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@ runs:
|
|||||||
using: 'composite'
|
using: 'composite'
|
||||||
steps:
|
steps:
|
||||||
- name: Publish Action Package
|
- name: Publish Action Package
|
||||||
run: 'node ${{github.action_path}}/dist/index.js'
|
run: 'npm --prefix ${{github.action_path}} start'
|
||||||
shell: bash
|
shell: bash
|
||||||
id: publish
|
id: publish
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -33,6 +33,7 @@
|
|||||||
"package": "ncc build src/index.ts --license licenses.txt",
|
"package": "ncc build src/index.ts --license licenses.txt",
|
||||||
"package:watch": "npm run package -- --watch",
|
"package:watch": "npm run package -- --watch",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
|
"start": "node dist/index.js",
|
||||||
"all": "npm run format:write && npm run lint && npm run test && npm run coverage && npm run package"
|
"all": "npm run format:write && npm run lint && npm run test && npm run coverage && npm run package"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
Reference in New Issue
Block a user