fix(test): fix bad test import #3045
Workflow file for this run
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: Continuous Releases | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - docusaurus-v** | |
| pull_request: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| release: | |
| name: Continuous Releases | |
| if: github.repository == 'facebook/docusaurus' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9 | |
| - name: Set up Node | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: lts/* | |
| # ⚠️ Do not use any cache on purpose | |
| # It increases the chance of a compromised release being publish | |
| # See https://github.com/actions/setup-node/issues/1445#issuecomment-4040130833 | |
| # cache: pnpm | |
| - name: Installation | |
| run: pnpm install --frozen-lockfile || pnpm install --frozen-lockfile || pnpm install --frozen-lockfile | |
| - name: Build packages | |
| run: pnpm build:packages | |
| - name: Initialize fresh templates | |
| run: | | |
| node ./packages/create-docusaurus/bin/index.js template/docusaurus-classic-js classic --javascript -p npm | |
| node ./packages/create-docusaurus/bin/index.js template/docusaurus-classic-ts classic --typescript -p npm | |
| - name: Release | |
| run: pnpm pkg-pr-new publish './packages/*' --template './template/*' --compact --comment=off |