-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f2b932d
commit fcb4632
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Use Vercel CLI to use `npm run publish-storybook` to deploy to Vercel | ||
|
||
name: CD workflow | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
init: | ||
name: Deploy | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Git checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Cache dependencies | ||
id: cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: node_modules | ||
key: deps-node-modules-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
|
||
- uses: pnpm/action-setup@v2 | ||
name: Install pnpm | ||
with: | ||
version: 7.1.5 | ||
run_install: false | ||
|
||
- name: Install dependencies | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: pnpm install | ||
|
||
# Build Storybook | ||
- name: Build Storybook | ||
run: npm run build-storybook | ||
|
||
# Deploy to Vercel | ||
- name: Deploy to Vercel | ||
uses: amondnet/vercel-action@v25 #deploy | ||
with: | ||
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required | ||
github-token: ${{ secrets.GIT_TOKEN }} #Optional | ||
vercel-args: '--prod' #Optional | ||
vercel-org-id: ${{ secrets.ORG_ID}} #Required | ||
vercel-project-id: ${{ secrets.PROJECT_ID}} #Required | ||
working-directory: ./ |
This file contains 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
fcb4632
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for vue-wafer-painter ready!
✅ Preview
https://vue-wafer-painter-l939nz5js-ttpss930141011.vercel.app
Built with commit fcb4632.
This pull request is being automatically deployed with vercel-action