Skip to content

Commit

Permalink
fix: deploy generates multiple commits
Browse files Browse the repository at this point in the history
  • Loading branch information
rjsduf0503 committed May 9, 2023
1 parent 50f1961 commit 1d1cd22
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
with:
fetch-depth: 0
persist-credentials: false
ref: ${{ github.head_ref }}
push: true
repository: rjsduf0503/react-scatter-graphy
token: ${{ secrets.GIT_AUTH_TOKEN }}
- run: yarn
- run: mkdir -p dist
- uses: chromaui/action@v1
Expand All @@ -28,13 +28,14 @@ jobs:
- run: |
sed -i "s|CHROMATIC_HOMEPAGE|${{ steps.chromatic.outputs.storybookUrl }}|" package.json
- run: yarn publish:npm-outDir
- run: |
sed -i "s|${{ steps.chromatic.outputs.storybookUrl }}|CHROMATIC_HOMEPAGE|" package.json
- 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
- 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 -f https://${{ secrets.GIT_AUTH_TOKEN }}@github.com/rjsduf0503/react-scatter-graphy.git HEAD:dist-build
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-scatter-graphy",
"version": "0.3.7",
"version": "0.3.8",
"description": "Image src based retro typography with scattering animation",
"private": false,
"files": [
Expand Down

0 comments on commit 1d1cd22

Please sign in to comment.