chore: isVisible 제거 #60
This file contains hidden or 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: Publish storybook | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '.gitignore' | |
- '.npmignore' | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
timeout-minutes: 8 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.PAT }} | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
registry-url: 'https://registry.npmjs.org/' | |
- name: Build | |
run: |- | |
npm i -g pnpm | |
pnpm i | |
pnpm build | |
- name: global config | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "tatahyeonv" | |
- name: Commit pending changes (if any) | |
run: | | |
git add -A | |
git diff --cached --quiet || git commit -m "chore: commit pending changes before version bump" | |
- name: auto version update | |
run: | | |
npm version patch | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_author: Actions Bot <[email protected]> | |
commit_message: 'chore(package.json): update version' | |
- name: Publish to NPM | |
run: | | |
npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |