From 13ae59674e30cd1f2c7129abd17cf2e146e3808a Mon Sep 17 00:00:00 2001 From: Rohit Gohri Date: Sat, 12 Mar 2022 16:18:57 +0530 Subject: [PATCH] Fix version script (#140) --- .changeset/tame-cheetahs-jog.md | 5 +++++ .github/workflows/version.yml | 4 ++-- package.json | 1 + packages/docusaurus-theme-redoc/package.json | 1 + yarn.lock | 3 ++- 5 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 .changeset/tame-cheetahs-jog.md diff --git a/.changeset/tame-cheetahs-jog.md b/.changeset/tame-cheetahs-jog.md new file mode 100644 index 00000000..0c6c7596 --- /dev/null +++ b/.changeset/tame-cheetahs-jog.md @@ -0,0 +1,5 @@ +--- +'docusaurus-theme-redoc': patch +--- + +Add theme-common as a dependency diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml index e53d0f37..e3578e00 100644 --- a/.github/workflows/version.yml +++ b/.github/workflows/version.yml @@ -36,8 +36,8 @@ jobs: - name: Create Release Pull Request uses: changesets/action@v1 with: - version: yarn changeset version && yarn - publish: yarn release + version: yarn run version + publish: yarn run release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 15f9e372..e141ed9c 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "release": "yarn build && changeset publish", "start": "yarn build && yarn workspace redocusaurus-website run start", "test": "echo \"Error: no test specified\" && exit 1", + "version": "changeset version && yarn", "prepare": "husky install" }, "repository": { diff --git a/packages/docusaurus-theme-redoc/package.json b/packages/docusaurus-theme-redoc/package.json index 04ad2589..88ecde51 100644 --- a/packages/docusaurus-theme-redoc/package.json +++ b/packages/docusaurus-theme-redoc/package.json @@ -28,6 +28,7 @@ }, "homepage": "https://github.com/rohit-gohri/redocusaurus#readme", "dependencies": { + "@docusaurus/theme-common": "^2.0.0-beta.17", "@docusaurus/types": "^2.0.0-beta.17", "clsx": "^1.1.1", "copyfiles": "^2.4.1", diff --git a/yarn.lock b/yarn.lock index dfc2409e..30c06f23 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2228,7 +2228,7 @@ __metadata: languageName: node linkType: hard -"@docusaurus/theme-common@npm:2.0.0-beta.17": +"@docusaurus/theme-common@npm:2.0.0-beta.17, @docusaurus/theme-common@npm:^2.0.0-beta.17": version: 2.0.0-beta.17 resolution: "@docusaurus/theme-common@npm:2.0.0-beta.17" dependencies: @@ -5968,6 +5968,7 @@ __metadata: dependencies: "@docusaurus/module-type-aliases": ^2.0.0-beta.17 "@docusaurus/theme-classic": ^2.0.0-beta.17 + "@docusaurus/theme-common": ^2.0.0-beta.17 "@docusaurus/types": ^2.0.0-beta.17 "@types/lodash": ^4.14.179 "@types/react-dom": ^17.0.13