Skip to content

Merge pull request #109 from owowagency/chore/treeshaking #149

Merge pull request #109 from owowagency/chore/treeshaking

Merge pull request #109 from owowagency/chore/treeshaking #149

Workflow file for this run

name: Release
on:
push:
branches:
- master
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: yarn
node-version: 18
registry-url: https://registry.npmjs.org
- run: yarn
- run: yarn build
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn generate-docs && npx semantic-release
- uses: actions/setup-node@v3
with:
cache: yarn
node-version: 18
registry-url: https://npm.pkg.github.com/
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: yarn publish dist
- run: yarn storybook:build
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./storybook-static