diff --git a/.github/workflows/cr.yml b/.github/workflows/cr.yml index ad3acdd33c29..b71f9d477232 100644 --- a/.github/workflows/cr.yml +++ b/.github/workflows/cr.yml @@ -26,5 +26,10 @@ jobs: - name: Build packages run: yarn build:packages + - name: Fresh templates + run: | + yarn create-docusaurus fresh-examples/docusaurus-classic classic --javascript -p npm -s + yarn create-docusaurus fresh-examples/docusaurus-classic-typescript classic --typescript -p npm -s + - name: Release - run: npx pkg-pr-new publish './packages/*' --template './examples/*' --compact + run: npx pkg-pr-new publish './packages/*' --template './fresh-examples/*' --compact --comment=off diff --git a/examples/classic/docusaurus.config.js b/examples/classic/docusaurus.config.js index 7b8d5b1c7f11..4688f7bfd1f3 100644 --- a/examples/classic/docusaurus.config.js +++ b/examples/classic/docusaurus.config.js @@ -6,6 +6,7 @@ import {themes as prismThemes} from 'prism-react-renderer'; +console.log('A test!'); /** @type {import('@docusaurus/types').Config} */ const config = { title: 'My Site', diff --git a/packages/create-docusaurus/bin/index.js b/packages/create-docusaurus/bin/index.js index 31b34343b73e..84d0c9e4f1d9 100755 --- a/packages/create-docusaurus/bin/index.js +++ b/packages/create-docusaurus/bin/index.js @@ -14,7 +14,6 @@ import logger from '@docusaurus/logger'; import semver from 'semver'; import {program} from 'commander'; -console.log('A test!'); const packageJson = /** @type {import("../package.json")} */ ( createRequire(import.meta.url)('../package.json') );