Skip to content

Commit 3f9db14

Browse files
authored
fix(ci): resolve pnpm cache and workspace dependency issues. (#44)
* fix(ci): resolve pnpm cache and workspace dependency issues. * fix(ci): change the Build package step to run from the packages/messaging folder
1 parent 3e7d219 commit 3f9db14

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,11 @@ jobs:
4444
node-version: "20"
4545
registry-url: "https://registry.npmjs.org"
4646
cache: "pnpm"
47+
cache-dependency-path: "packages/pnpm-lock.yaml"
4748

4849
- name: Install dependencies
4950
run: |
50-
cd packages/messaging
51+
cd packages
5152
pnpm install
5253
5354
- name: Check version against npm registry
@@ -94,6 +95,7 @@ jobs:
9495
node-version: "20"
9596
registry-url: "https://registry.npmjs.org"
9697
cache: "pnpm"
98+
cache-dependency-path: "packages/pnpm-lock.yaml"
9799

98100
- name: Install dependencies
99101
run: |
@@ -102,7 +104,7 @@ jobs:
102104
103105
- name: Build package
104106
run: |
105-
cd packages
107+
cd packages/messaging
106108
pnpm build
107109
108110
- name: Run linting

0 commit comments

Comments
 (0)