Skip to content

update runStoreWatcher logic #120

update runStoreWatcher logic

update runStoreWatcher logic #120

Workflow file for this run

name: Publish to NPM
on:
push:
branches: [main]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- run: echo "πŸŽ‰ The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "πŸ”Ž The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: install and build
run: |
pnpm install
pnpm build
- name: Publish package on NPM πŸ“¦
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.UI_NPM }}
- name: Prepare Deploy for Storybook πŸš€
run: |
pnpm build
pnpm build-storybook
- name: Deploy Storybook πŸš€
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # The branch the action should deploy to.
folder: storybook-static # The folder the action should deploy.