chore: add docs publishing to release workflow #3
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
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: Build docs | |
run: yarn docs:build | |
- name: Publish docs | |
run: yarn docs:publish |