Skip to content

Commit

Permalink
cd: cache npm dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdanwan committed Nov 22, 2024
1 parent 92c912c commit 6493360
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# .github/workflows/cd.yml

# Continuous Integration (CD) Workflow
name: cd
on:
release:
Expand All @@ -15,6 +18,8 @@ jobs:
with:
node-version: 'lts/*'
registry-url: 'https://registry.npmjs.org'
# Cache npm dependencies so they don't have to be downloaded next time - https://github.com/actions/setup-node#caching-packages-dependencies
cache: 'npm'
- run: npm ci
- run: npm publish --provenance --access public
env:
Expand Down

0 comments on commit 6493360

Please sign in to comment.