Skip to content

ci: add npm cache

ci: add npm cache #9

Workflow file for this run

name: Deploy docs
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- run: npm ci
- run: npm run build
env:
TURBO_TOKEN: Ji8cnHwcujA3Kyo7Spv3N6sj
TURBO_TEAM: rcrdk
- name: Deploy storybook
working-directory: ./packages/docs
run: touch storybook-static/.nojekyll && npm run deploy-storybook -- --ci --existing-output-dir=storybook-static
env:
GH_TOKEN: ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}