Skip to content

feat: CSS modules

feat: CSS modules #65

Workflow file for this run

name: Build, typescript, eslint & stylelint checks
on:
pull_request:
workflow_dispatch:
jobs:
# Install and cache npm dependencies
install-cache:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: echo "node_version=$(cat .github/nodejs.version)" >> $GITHUB_ENV
- name: "use node ${{ env.node_version }}"
uses: actions/setup-node@v4
with:
node-version: "${{ env.node_version }}"
- name: Cache npm dependencies
uses: actions/cache@v4
id: npm-cache
with:
path: |
node_modules
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm
- name: Install dependencies if cache invalid
if: steps.npm-cache.outputs.cache-hit != 'true'
run: npm ci
# Build Storybook
build:
runs-on: ubuntu-latest
needs: install-cache
steps:
- uses: actions/checkout@v4
- run: echo "node_version=$(cat .github/nodejs.version)" >> $GITHUB_ENV
- name: "use node ${{ env.node_version }}"
uses: actions/setup-node@v4
with:
node-version: "${{ env.node_version }}"
- name: Restore npm dependencies
uses: actions/cache@v4
id: npm-cache
with:
path: |
node_modules
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm
- name: Run ESLint
run: npm run lint
- name: Run Stylelint
run: npm run lint-css
- name: Build Storybook
run: npm run build-storybook
- name: Build Package
run: npm run build-package