Skip to content

test: deploy generates multiple commits fix test #131

test: deploy generates multiple commits fix test

test: deploy generates multiple commits fix test #131

Workflow file for this run

name: 'react-scatter-graphy storybook deploy and npm publish'
on:
push:
branches:
- deploy-test
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
repository: rjsduf0503/react-scatter-graphy
token: ${{ secrets.GIT_AUTH_TOKEN }}
- run: yarn
- run: mkdir -p dist
- uses: chromaui/action@v1
id: chromatic
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
- run: |
npm config set '//registry.npmjs.org/:_authToken' ${{ secrets.NPM_AUTH_TOKEN }}
npm config set access public
- run: |
sed -i "s|CHROMATIC_HOMEPAGE|${{ steps.chromatic.outputs.storybookUrl }}|" package.json
- run: yarn tsc-build:outDir
# - run: yarn publish:npm-outDir
- run: cp -R build/* dist/
# - uses: LasyIsLazy/github-upload-action@v0.1.0
# with:
# access-token: ${{ secrets.GIT_AUTH_TOKEN }}
# file-path: dist/
# owner: rjsduf0503
# repo: react-scatter-graphy
# remote-dir: dist
# commit-message: 'build: automate deploy dist'
# branch-name: dist-build-test
# git config --global user.name "$(git log -n 1 --pretty=format:%an)"
# git config --global user.email "$(git log -n 1 --pretty=format:%ae)"
- run: |
git config --global user.name "류건열"
git config --global user.email "rjsduf0503@naver.com"
- run: |
git add dist
git commit -am 'build: automate deploy dist'
git push