Skip to content

Commit d69d0fb

Browse files
committed
Update workflow
1 parent 1999749 commit d69d0fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@ jobs:
1919
uses: actions/setup-node@v4
2020
with:
2121
node-version: 20
22-
cache: 'npm'
2322

2423
- name: Install dependencies
25-
run: npm install
24+
run: npm install --no-lockfile
2625

2726
- name: Run tests
2827
run: npm run test
@@ -31,6 +30,7 @@ jobs:
3130
run: npm run build
3231

3332
- name: Publish to npm
33+
if: startsWith(github.ref, 'refs/tags/')
3434
env:
3535
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3636
run: npm publish --access public

0 commit comments

Comments
 (0)