chore: release v3.1.12 #144
This file contains hidden or 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
name: 'Deploy(main)' | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [ opened, edited, synchronize, reopened ] | |
branches: | |
- main | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- run: npm i | |
- run: rm -rf node_modules/@types/react | |
- run: npm test | |
- run: npm run lint | |
- run: npm run typecheck | |
deploy: | |
needs: check | |
name: 'Deploy to cloud' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# https://github.com/marketplace/actions/netlify-deploy | |
# - name: deploy to netlify | |
# uses: jsmrcaga/action-netlify-deploy@v1.8.0 | |
# with: | |
# NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_TOKEN }} | |
# NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
# NETLIFY_DEPLOY_TO_PROD: true | |
# use_nvm: false | |
# build_command: 'npm run build:storybook' | |
# build_directory: 'playground/storybook-static' | |
# https://github.com/marketplace/actions/vercel-action | |
- name: deploy to vercel | |
uses: amondnet/vercel-action@v25 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
vercel-args: '--prod' | |
vercel-token: ${{ secrets.VERCEL_TOKEN }} | |
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }} | |
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }} |