Skip to content

Commit 796c696

Browse files
update working dir
1 parent 8a2927d commit 796c696

File tree

4 files changed

+29
-1
lines changed

4 files changed

+29
-1
lines changed

.github/workflows/manualRelease.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: manual release
33
on:
44
workflow_dispatch:
55

6+
defaults:
7+
run:
8+
working-directory: packages/cli
9+
610
jobs:
711
release:
812
runs-on: ubuntu-latest
@@ -25,7 +29,7 @@ jobs:
2529
- uses: notiz-dev/github-action-json-property@2192e246737701f108a4571462b76c75e7376216
2630
id: packageVersion
2731
with:
28-
path: 'package.json'
32+
path: 'packages/cli/package.json'
2933
prop_path: 'version'
3034
- name: Create Github Release
3135
uses: actions/create-release@v1

.github/workflows/onPushToMain.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,19 @@ name: version, tag and github release
44
on:
55
push:
66
branches: [main]
7+
paths:
8+
- 'packages/cli/**'
9+
- '.github/workflows/**'
10+
11+
defaults:
12+
run:
13+
working-directory: packages/cli
714

815
jobs:
916
release:
1017
uses: oclif/github-workflows/.github/workflows/githubRelease.yml@main
18+
with:
19+
working-directory: packages/cli
1120
secrets: inherit
1221

1322
# most repos won't use this

.github/workflows/onRelease.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,16 @@ on:
1010
description: tag that needs to publish
1111
type: string
1212
required: true
13+
14+
defaults:
15+
run:
16+
working-directory: packages/cli
17+
1318
jobs:
1419
npm:
1520
uses: oclif/github-workflows/.github/workflows/npmPublish.yml@main
1621
with:
1722
tag: latest
1823
githubTag: ${{ github.event.release.tag_name || inputs.tag }}
24+
working-directory: packages/cli
1925
secrets: inherit

.github/workflows/test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,17 @@ name: tests
22
on:
33
push:
44
branches-ignore: [main]
5+
paths:
6+
- 'packages/cli/**'
7+
- '.github/workflows/**'
58
workflow_dispatch:
69

10+
defaults:
11+
run:
12+
working-directory: packages/cli
13+
714
jobs:
815
unit-tests:
916
uses: oclif/github-workflows/.github/workflows/unitTest.yml@main
17+
with:
18+
working-directory: packages/cli

0 commit comments

Comments
 (0)