Skip to content

Commit

Permalink
chore: add docs publishing to release workflow
Browse files Browse the repository at this point in the history
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
Show file tree
Hide file tree
Showing 4 changed files with 3,310 additions and 1,952 deletions.
43 changes: 1 addition & 42 deletions .github/workflows/release.yml
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
Expand Down
4 changes: 3 additions & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
"packages": [
"packages/*"
],
"useWorkspaces": true,
"version": "independent",
"command": {
"version": {
"message": "chore(release): version %s"
"allowBranch": "master",
"message": "chore(release): publish packages"
}
}
}
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading

0 comments on commit 8a4a12e

Please sign in to comment.