-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add docs publishing to release workflow
Also, bumped `lerna` to 5.6.2 and `@tramvai/build` to 2.6.11
- Loading branch information
Alexey Ryazanov
committed
Aug 2, 2023
1 parent
061da6f
commit 8a4a12e
Showing
4 changed files
with
3,310 additions
and
1,952 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1 @@ | ||
name: release | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
GH_TOKEN: ${{ secrets.TINKOFF_BOT_PAT }} | ||
|
||
jobs: | ||
release: | ||
if: "!contains(github.event.head_commit.message, 'chore(release)')" | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Initialize Git user | ||
run: | | ||
git config --global user.name 'tinkoff-bot' | ||
git config --global user.email '[email protected]' | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.TINKOFF_BOT_PAT }} | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Install dependencies | ||
run: yarn bootstrap | ||
|
||
- name: Build | ||
run: yarn build | ||
|
||
- name: Release | ||
run: yarn publish | ||
name: releaseon: push: branches: - masterenv: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} GH_TOKEN: ${{ secrets.TINKOFF_BOT_PAT }}jobs: release: if: "!contains(github.event.head_commit.message, 'chore(release)')" runs-on: ubuntu-latest steps: - name: Initialize Git user run: | git config --global user.name 'tinkoff-bot' git config --global user.email '[email protected]' - uses: actions/checkout@v3 with: fetch-depth: 0 token: ${{ secrets.TINKOFF_BOT_PAT }} - uses: actions/setup-node@v3 with: node-version: 18.x registry-url: 'https://registry.npmjs.org' - name: Install dependencies run: yarn bootstrap - name: Build packages run: yarn build - name: Release packages run: yarn release - name: Build docs run: yarn docs:build - name: Publish docs run: yarn docs:publish | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,26 +13,30 @@ | |
"bootstrap": "yarn --frozen-lockfile", | ||
"build": "lerna run prepack", | ||
"watch": "lerna run watch --parallel", | ||
"publish": "lerna publish --conventional-commits --yes --create-release github", | ||
"release": "lerna publish from-git --no-private --conventional-commits --yes --create-release github", | ||
"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" | ||
], | ||
"license": "ISC", | ||
"devDependencies": { | ||
"@size-limit/preset-small-lib": "^7.0.8", | ||
"@tramvai/build": "^2.6.4", | ||
"@tramvai/build": "^2.6.11", | ||
"@types/jest": "^27.4.1", | ||
"@types/node": "^17.0.21", | ||
"fast-glob": "^3.2.11", | ||
"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", | ||
|
Oops, something went wrong.