We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eaeb627 commit 91b5fe8Copy full SHA for 91b5fe8
.github/actions/internal/action.yml
@@ -0,0 +1,10 @@
1
+name: (internal)
2
+description: (internal)
3
+inputs:
4
+ name:
5
+ required: true
6
+ file:
7
8
+runs:
9
+ using: node20
10
+ main: main.mjs
.github/actions/internal/main.mjs
@@ -0,0 +1,4 @@
+import child_process from 'child_process';
+
+const args = ['dist/index.js', process.env.INPUT_NAME, process.env.INPUT_FILE];
+child_process.execFileSync('node', args, {stdio: 'inherit'});
.github/workflows/main.yml
@@ -13,5 +13,7 @@ jobs:
13
node-version: 20.x
14
- run: npm i
15
- run: npm run package
16
- - run: node dist/index.js output dist/index.js
17
- name: upload artifact
+ - uses: .github/actions/internal
+ with:
18
+ name: dist
19
+ file: dist/index.js
0 commit comments