Skip to content

Commit 92f4a25

Browse files
feat(npm): add workdirectory (#59)
1 parent c1d677d commit 92f4a25

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/publish-npm.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ on:
4242
required: false
4343
default: ''
4444
type: string
45+
working-directory:
46+
description: "Change the workspace"
47+
default: ''
48+
type: string
4549
secrets:
4650
npm-token:
4751
description: 'NPM token for authentication'
@@ -65,9 +69,11 @@ jobs:
6569
scope: ${{ inputs.scope }}
6670

6771
- name: Install dependencies
72+
working-directory: ${{ inputs.working-directory }}
6873
run: ${{ inputs.install-command }}
6974

7075
- name: Publish package
76+
working-directory: ${{ inputs.working-directory }}
7177
run: |
7278
TAG_OPTION=""
7379
if [ -n "${{ inputs.tag }}" ]; then

0 commit comments

Comments
 (0)