Skip to content

fix: CI

fix: CI #19

Workflow file for this run

name: Publish
on:
push:
branches:
- master
jobs:
depoly:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: |
~/setup-pnpm/node_modules/.bin/store
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Test
run: pnpm test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
- name: Build
run: pnpm build
- name: Build Storybook
run: pnpm build-storybook
- name: Depoly storybook
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: storybook-static
- name: Publish
run: |
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}