Skip to content

Commit 80748cc

Browse files
committed
fix: update publish workflow to use correct working directory
1 parent 33e3bcc commit 80748cc

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,25 @@ jobs:
1313
- name: Setup Node.js
1414
uses: actions/setup-node@v4
1515
with:
16-
node-version: "20.x"
17-
registry-url: "https://registry.npmjs.org"
16+
node-version: '20.x'
17+
registry-url: 'https://registry.npmjs.org'
18+
cache: 'npm'
19+
cache-dependency-path: 'package/package-lock.json'
1820

1921
- name: Install dependencies
22+
working-directory: ./package
2023
run: npm ci
2124

2225
- name: Run tests
26+
working-directory: ./package
2327
run: npm test
2428

2529
- name: Build
30+
working-directory: ./package
2631
run: npm run build
2732

2833
- name: Publish to NPM
34+
working-directory: ./package
2935
run: npm publish
3036
env:
3137
NODE_AUTH_TOKEN: ${{ secrets.SHNIPPET_NPM_TOKEN }}

0 commit comments

Comments
 (0)