Skip to content

Commit

Permalink
chore: package.json 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
황 태환 committed Mar 5, 2024
1 parent f2a543e commit f3cae22
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/storybook-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,10 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- uses: keithweaver/[email protected]
with:
command: cp
source: ./storybook-static
destination: s3://anotherme-storybook/storybook-static
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws_region: ap-northeast-2
- name: Deploy to S3
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ap-northeast-2
run: |
aws s3 sync ./storybook-static s3://anotherme-storybook/storybook-static
2 changes: 0 additions & 2 deletions deploy-storybook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ BRANCH="storybook/$(date +%s)"

git switch -c $BRANCH

pnpm

git push origin HEAD

git switch -
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"lint": "next lint",
"test": "vitest",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build"
"build-storybook": "storybook build",
"deploy-storybook": "sh ./deploy-storybook.sh"
},
"dependencies": {
"@ducanh2912/next-pwa": "^10.2.2",
Expand Down

0 comments on commit f3cae22

Please sign in to comment.