Skip to content

Commit

Permalink
chore: add variables for publishing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Ryazanov committed Aug 2, 2023
1 parent 1141b39 commit a7f2c7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
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
name: releaseon: push: branches: - masterenv: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}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: Release packages run: yarn release env: GH_TOKEN: ${{ secrets.TINKOFF_BOT_PAT }} - name: Build docs run: yarn docs:build - name: Publish docs uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.TINKOFF_BOT_PAT }} publish_dir: ./website/build
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"release": "lerna publish --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"
"docs:start": "yarn --cwd ./website start"
},
"author": {
"name": "Tinkoff Team",
Expand Down

0 comments on commit a7f2c7a

Please sign in to comment.