fix: adapt to the head #176
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: Build common | |
| on: | |
| pull_request: | |
| types: [opened, reopened, synchronize, edited] | |
| paths: | |
| - 'packages/common/**' | |
| workflow_dispatch: {} | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: webfactory/[email protected] | |
| with: | |
| ssh-private-key: ${{ secrets.SUBMODULE_SSH_KEY }} | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| submodules: false | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v3 | |
| with: | |
| version: 9 | |
| - name: Configure Git identity | |
| run: | | |
| git config --global user.name "GitHub Actions" | |
| git config --global user.email "[email protected]" | |
| - name: Ensure submodules are up-to-date | |
| run: | | |
| git submodule sync --recursive | |
| git submodule update --init --recursive | |
| git submodule status --recursive | |
| - name: Build genui-sdk homepage | |
| run: | | |
| pnpm build:genui-sdk | |
| - name: Install deps | |
| run: pnpm -F opentiny-design-common i --no-frozen-lockfile | |
| - name: Build common | |
| run: pnpm build:common |