fix(deps): update dependencies #65
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: push | |
env: | |
FOLDER_PATH_STORYBOOK_BUILD: ./build-storybook-static | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
- 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 | |
- name: Build ποΈ | |
run: npm run build | |
storybook: | |
runs-on: ubuntu-latest | |
needs: [validate] | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
- 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 | |
npm-release: | |
runs-on: ubuntu-latest | |
needs: [validate] | |
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: '20.x' | |
- 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 π | |
run: npm run semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |