fix(ci): remove hardcoded pnpm version 9 from rn-release and deploy-t… #61
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 Docs to GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - next | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pages: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: false | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Use Node.js 18.x | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18.x | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --shamefully-hoist | |
| env: | |
| NODE_OPTIONS: --openssl-legacy-provider | |
| - name: Build taro-ui | |
| run: pnpm run build:ui | |
| env: | |
| NODE_OPTIONS: --openssl-legacy-provider | |
| - name: Build H5 demo | |
| run: pnpm --filter demo run build:h5 | |
| env: | |
| NODE_OPTIONS: --openssl-legacy-provider | |
| - name: Build taro-ui-docs | |
| run: pnpm --filter docs run build | |
| env: | |
| NODE_OPTIONS: --openssl-legacy-provider | |
| - name: Copy H5 demo to docs dist | |
| run: pnpm --filter docs run build:static | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: docs/.vitepress/dist |