Skip to content

Commit

Permalink
Fix version script (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohit-gohri committed Mar 12, 2022
1 parent a2ec55e commit 13ae596
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/tame-cheetahs-jog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'docusaurus-theme-redoc': patch
---

Add theme-common as a dependency
4 changes: 2 additions & 2 deletions .github/workflows/version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
1 change: 1 addition & 0 deletions packages/docusaurus-theme-redoc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

1 comment on commit 13ae596

@vercel
Copy link

@vercel vercel bot commented on 13ae596 Mar 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.