Skip to content

Commit 1851766

Browse files
resolve comments
Signed-off-by: Nikita Korolev <nikita.korolev@flant.com>
1 parent f73f102 commit 1851766

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/actions/my-hello-action/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"description": "A reusable TypeScript action",
66
"main": "dist/index.js",
77
"scripts": {
8-
"build": "tsc",
9-
"bundle": "ncc build src/main.ts -o dist"
8+
"build": "ncc build src/index.ts -o dist",
9+
"compile": "tsc"
1010
},
1111
"dependencies": {
1212
"@actions/core": "^1.10.0",
File renamed without changes.

.github/workflows/typescript-examples.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
with:
5757
result-encoding: string
5858
script: |
59-
const myScript = require('./my-script.js');
59+
const myScript = require('${{ github.workspace }}/my-script.js');
6060
await myScript({ github, context, core });
6161
6262
# Example 3: Using actions/typescript-action with local action
@@ -190,7 +190,7 @@ jobs:
190190
- name: Install and build reusable action
191191
working-directory: ./.github/actions/my-hello-action
192192
run: |
193-
npm install
193+
npm install --include=dev
194194
npm run build
195195
196196
- id: hello

0 commit comments

Comments
 (0)