Skip to content

Commit

Permalink
chore: add docs publishing to release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Ryazanov committed Aug 2, 2023
1 parent 061da6f commit 3059e83
Show file tree
Hide file tree
Showing 4 changed files with 2,020 additions and 1,146 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,17 @@ jobs:
- name: Build
run: yarn build

- name: Release
run: yarn publish
- name: Create release commit and tag
run: yarn version:ci

- name: Push release commit and tag
run: git push --follow-tags

- name: Publish packages
run: yarn publish:ci

- name: Build docs
run: yarn docs:build

- name: Publish docs
run: yarn docs:publish
5 changes: 4 additions & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
"packages": [
"packages/*"
],
"useWorkspaces": true,
"version": "independent",
"command": {
"version": {
"message": "chore(release): version %s"
"allowBranch": "master",
"message": "chore(release): version %s",
"changelogPreset": "conventionalcommits"
}
}
}
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,17 @@
"bootstrap": "yarn --frozen-lockfile",
"build": "lerna run prepack",
"watch": "lerna run watch --parallel",
"publish": "lerna publish --conventional-commits --yes --create-release github",
"publish:ci": "lerna publish from-git --yes --create-release github",
"version:ci": "lerna version --no-private --no-push --conventional-commits --yes",
"clean": "git clean -Xdf .",
"docs:build": "yarn --cwd ./website build",
"docs:start": "yarn --cwd ./website start",
"docs:publish": "yarn --cwd ./website publish-gh-pages"
},
"author": {
"name": "Tinkoff Team",
"email": "[email protected]"
},
"keywords": [
"request"
],
Expand All @@ -32,7 +37,7 @@
"fs-extra": "^10.0.1",
"jest": "^27.5.1",
"jest-date-mock": "^1.0.8",
"lerna": "^4.0.0",
"lerna": "^5.6.2",
"prettier": "^2.5.1",
"size-limit": "^7.0.8",
"ts-jest": "^27.1.3",
Expand Down
Loading

0 comments on commit 3059e83

Please sign in to comment.