Version Packages #954
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: Pull request | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize, ready_for_review] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
verify: | |
name: Verify | |
uses: ./.github/workflows/verify.yml | |
secrets: inherit | |
use-cases: | |
name: Use Case Tests | |
uses: ./.github/workflows/use-cases.yml | |
secrets: inherit | |
docs: | |
name: Deploy SDK Typedoc | |
needs: verify | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
env: | |
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} | |
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
fetch-depth: 2 | |
token: ${{ secrets.BOOST_GITHUB_TOKEN }} | |
- name: Install dependencies | |
uses: ./.github/actions/install-dependencies | |
env: | |
GITHUB_TOKEN: ${{ secrets.BOOST_GITHUB_TOKEN }} | |
- name: Install Vercel CLI | |
run: npm install --global vercel@latest | |
- name: Pull Vercel Environment Information | |
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} | |
- name: Build Project Artifacts | |
run: vercel build --token=${{ secrets.VERCEL_TOKEN }} | |
- name: Deploy Project Artifacts to Vercel | |
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} |