We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33e3bcc commit 80748ccCopy full SHA for 80748cc
.github/workflows/publish.yml
@@ -13,19 +13,25 @@ jobs:
13
- name: Setup Node.js
14
uses: actions/setup-node@v4
15
with:
16
- node-version: "20.x"
17
- registry-url: "https://registry.npmjs.org"
+ node-version: '20.x'
+ registry-url: 'https://registry.npmjs.org'
18
+ cache: 'npm'
19
+ cache-dependency-path: 'package/package-lock.json'
20
21
- name: Install dependencies
22
+ working-directory: ./package
23
run: npm ci
24
25
- name: Run tests
26
27
run: npm test
28
29
- name: Build
30
31
run: npm run build
32
33
- name: Publish to NPM
34
35
run: npm publish
36
env:
37
NODE_AUTH_TOKEN: ${{ secrets.SHNIPPET_NPM_TOKEN }}
0 commit comments