Update dependency typescript to v5.4.5 #480
Workflow file for this run
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
name: deploy | |
on: | |
workflow_dispatch: | |
inputs: | |
prod_env: | |
description: 'Production' | |
required: false | |
default: true | |
type: boolean | |
pull_request: | |
types: [opened, synchronize, labeled] | |
jobs: | |
deploy: | |
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'deploy')) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup-env | |
- run: pnpm run build | |
- name: set deploy prod flag | |
id: set_vercel_args | |
run: | | |
if [ "$PROD_ENV" == 'true' ] | |
then | |
echo "::set-output name=args::--prod" | |
else | |
echo "::set-output name=args::" | |
fi | |
env: | |
PROD_ENV: ${{ inputs.prod_env }} | |
- uses: amondnet/vercel-action@v25 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
vercel-token: ${{ secrets.VERCEL_TOKEN }} | |
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }} | |
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }} | |
vercel-args: ${{ steps.set_vercel_args.outputs.args }} | |
working-directory: dist |