Skip to content

deps: update storybook monorepo to v10.0.3 #64

deps: update storybook monorepo to v10.0.3

deps: update storybook monorepo to v10.0.3 #64

Workflow file for this run

name: Vercel Deploy
on:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize]
jobs:
deploy:
name: Deploy to Vercel
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Setup workspace
uses: ./.github/actions/setup-workspace
- name: Deploy to Vercel (Preview)
if: github.event_name == 'pull_request'
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
run: |
npx vercel deploy --token=$VERCEL_TOKEN > deployment-url.txt
echo "DEPLOYMENT_URL=$(cat deployment-url.txt)" >> $GITHUB_ENV
- name: Deploy to Vercel (Production)
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
run: |
npx vercel deploy --prod --token=$VERCEL_TOKEN > deployment-url.txt
echo "DEPLOYMENT_URL=$(cat deployment-url.txt)" >> $GITHUB_ENV
- name: Comment deployment URL on PR
if: github.event_name == 'pull_request'
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `## 🚀 Vercel Preview Deployment\n\n✅ デプロイが完了しました!\n\n**Preview URL**: ${process.env.DEPLOYMENT_URL}`
})