Skip to content

fix(deps): update dependencies #75

fix(deps): update dependencies

fix(deps): update dependencies #75

Workflow file for this run

name: CI
on:
push:
branches:
- main
env:
NODE_VERSION: '20.x'
FOLDER_PATH_STORYBOOK_BUILD: ./build-storybook-static
jobs:
build:
name: Build πŸ—οΈ
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Cache dependencies ⚑
id: cache_dependencies
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}
- name: Install dependencies πŸ”§
if: steps.cache_dependencies.outputs.cache-hit != 'true'
run: npm ci
- name: Build πŸ—οΈ
run: npm run build
lint:
name: Lint βœ…
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Cache dependencies ⚑
id: cache_dependencies
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}
- name: Install dependencies πŸ”§
if: steps.cache_dependencies.outputs.cache-hit != 'true'
run: npm ci
- name: Lint βœ…
run: npm run lint
tsc:
name: TypeScript Compiler πŸ”Ž
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Cache dependencies ⚑
id: cache_dependencies
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}
- name: Install dependencies πŸ”§
if: steps.cache_dependencies.outputs.cache-hit != 'true'
run: npm ci
- name: TypeScript Compiler πŸ”Ž
run: npm run tsc
storybook:
name: Deploy Storybook πŸš€
runs-on: ubuntu-latest
needs: [build, lint, tsc]
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Cache dependencies ⚑
id: cache_dependencies
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}
- name: Install dependencies πŸ”§
if: steps.cache_dependencies.outputs.cache-hit != 'true'
run: npm ci
- name: Build πŸ—οΈ
run: npm run storybook-build
- name: Deploy πŸš€
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: ${{ env.FOLDER_PATH_STORYBOOK_BUILD }}
clean: true
release-npm:
name: Release npm πŸš€
runs-on: ubuntu-latest
needs: [build, lint, tsc]
if: github.ref == 'refs/heads/main'
env:
NODE_ENV: 'production'
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Cache dependencies ⚑
id: cache_dependencies
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}
- name: Install dependencies πŸ”§
if: steps.cache_dependencies.outputs.cache-hit != 'true'
run: npm ci
- name: Build πŸ—οΈ
run: npm run build
- name: Release πŸš€
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run release