Skip to content

0.43.2-beta.2

0.43.2-beta.2 #42

Workflow file for this run

name: Documentation
on:
push:
branches:
- 'main'
env:
CAIDO_REF: ${{ github.ref }}
CAIDO_GITHUB_TOKEN: ${{ github.token }}
CAIDO_DOC_RW_TOKEN: ${{ secrets.CI__DOC__RW }}
CAIDO_NODE_VERSION: 20
CAIDO_PNPM_VERSION: 9
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.CAIDO_NODE_VERSION }}
- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: ${{ env.CAIDO_PNPM_VERSION }}
run_install: false
- name: Checkout sdk-js
uses: actions/checkout@v4
with:
repository: caido/sdk-js
ref: ${{ env.CAIDO_REF }}
path: ./sdk-js
token: ${{ env.CAIDO_GITHUB_TOKEN }}
- name: Checkout doc-developer
uses: actions/checkout@v4
with:
repository: caido/doc-developer
ref: main
path: ./doc-developer
token: ${{ env.CAIDO_DOC_RW_TOKEN }}
- name: Install dependencies
working-directory: ./sdk-js
run: pnpm i --frozen-lockfile
- name: Run script
working-directory: ./doc-developer
run: pnpm generate:sdk
- name: Pull Request
uses: caido/[email protected]
with:
token: ${{ env.CAIDO_DOC_RW_TOKEN }}
path: ./doc-developer
commit-message: Update SDK Documentation
committer: Caido Bot <[email protected]>
author: Caido Bot <[email protected]>
branch: bot-sdk-update
delete-branch: true
base: main
title: Update SDK Documentation
body: ''