Skip to content

Commit

Permalink
feat: deploy on vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
singuerinc committed May 30, 2021
1 parent 3c3c248 commit 958c34f
Show file tree
Hide file tree
Showing 6 changed files with 409 additions and 13 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
name: Deploy web
on:
release:
types:
- published
- push
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/web
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
- run: yarn
- run: yarn run build
- uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
vercel-args: "--prod"
vercel-org-id: ${{ secrets.ORG_ID}}
vercel-project-id: ${{ secrets.PROJECT_ID}}
working-directory: ./sub-directory
2 changes: 1 addition & 1 deletion .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: yarn
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ packages/web/dist
packages/web/.cache
packages/web/node_modules
yarn-error.log
.parcel-cache
.parcel-cache
.vercel
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"commitlint": "^12.1.4",
"husky": "^6.0.0"
"husky": "^6.0.0",
"vercel": "^23.0.0"
}
}
7 changes: 7 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"version": 2,
"public": false,
"github": {
"enabled": false
}
}
Loading

0 comments on commit 958c34f

Please sign in to comment.