Manual Publish Docs #2
Workflow file for this run
This file contains hidden or 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: Manual Publish Docs | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| dry-run: | |
| description: 'Is this a dry run. If so no package will be published.' | |
| type: boolean | |
| required: true | |
| prerelease: | |
| description: 'Is this a prerelease. If so, then the latest tag will not be updated in npm.' | |
| type: boolean | |
| required: true | |
| permissions: | |
| id-token: write | |
| contents: write | |
| concurrency: ${{ github.workflow }}-${{ github.ref }} | |
| jobs: | |
| publish-package: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: launchdarkly/common-actions/ssh-key-by-repo@main | |
| with: | |
| repo_keys_map: | | |
| { | |
| "launchdarkly/rrweb": ${{ toJSON(secrets.LAUNCHDARKLY_RRWEB_DEPLOY_KEY) }} | |
| } | |
| - uses: launchdarkly/common-actions/init@main | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| - run: git submodule update --init --recursive | |
| - name: Setup Node.js environment | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| cache: 'yarn' | |
| - name: Install js dependencies | |
| run: yarn | |
| - name: Build docs | |
| run: yarn docs | |
| - uses: launchdarkly/gh-actions/actions/publish-pages@publish-pages-v1.0.2 | |
| name: 'Publish to Github pages' | |
| with: | |
| docs_path: sdk/highlight-run/docs | |
| output_path: packages/@launchdarkly/observability | |
| github_token: ${{ secrets.GITHUB_TOKEN }} |