Skip to content

feat!: new provider.yaml and new contracts v2 [JS-850, JS-851] #6678

feat!: new provider.yaml and new contracts v2 [JS-850, JS-851]

feat!: new provider.yaml and new contracts v2 [JS-850, JS-851] #6678

Workflow file for this run

name: "docs"
on:
pull_request:
paths-ignore:
- "!**.md"
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
env:
CI: true
FORCE_COLOR: true
FLUENCE_USER_DIR: "${{ github.workspace }}/tmp/.fluence"
jobs:
docs:
permissions:
contents: write
id-token: write
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
name: Generate docs
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.FLUENCEBOT_RELEASE_PLEASE_PAT }}
- name: Setup node with self-hosted npm registry
uses: actions/setup-node@v4
with:
node-version: "22.10.0"
registry-url: "https://npm.fluence.dev"
cache: "yarn"
- run: yarn install
- name: Setup golang
uses: actions/setup-go@v5
- name: Install json-schema-docs
run: go install github.com/marcusolsson/json-schema-docs@latest
- name: Cache turbo build setup
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- name: Import secrets
uses: hashicorp/[email protected]
id: secrets
with:
url: https://vault.fluence.dev
path: jwt/github
role: ci
method: jwt
jwtGithubAudience: "https://github.com/fluencelabs"
jwtTtl: 300
exportToken: false
secrets: |
kv/docker-registry/basicauth/ci username | DOCKER_USERNAME ;
kv/docker-registry/basicauth/ci password | DOCKER_PASSWORD ;
- name: Login to private docker registry
uses: docker/login-action@v3
with:
registry: docker.fluence.dev
username: ${{ env.DOCKER_USERNAME }}
password: ${{ env.DOCKER_PASSWORD }}
- name: Run on each commit
run: yarn on-each-commit
- name: Format
run: yarn format
- name: Auto-commit
uses: stefanzweifel/git-auto-commit-action@v5