Skip to content

chore(deps-dev): bump the testing-dependencies group with 2 updates #450

chore(deps-dev): bump the testing-dependencies group with 2 updates

chore(deps-dev): bump the testing-dependencies group with 2 updates #450

name: Design System Docs (main)
on:
push:
branches:
- main
jobs:
publish:
name: Publish release to Netlify
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
# We link the @citizensadvice/design-system package
# from the root but we only build the lib/ directory
# when we publish to npm, so we need to build it first.
- uses: bahmutov/npm-install@v1
- run: npm run build
# Setup docs site
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3.1'
bundler-cache: true
working-directory: design-system-docs
# Install dependencies
- uses: bahmutov/npm-install@v1
with:
working-directory: design-system-docs
- run: ./bin/bridgetown deploy
working-directory: design-system-docs
- name: Deploy production to Netlify
uses: South-Paw/action-netlify-deploy@v1.2.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
netlify-site-id: ${{ secrets.NETLIFY_SITE_ID }}
build-dir: ./design-system-docs/output
config-path: ./netlify.toml