docs: add instructions for API docs (#5287) #49
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 Please | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
release_please: | |
name: release-please | |
runs-on: ubuntu-latest | |
outputs: | |
releaseCreated: ${{ steps.release.outputs.release_created }} | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- uses: googleapis/release-please-action@v4 | |
id: release | |
with: | |
config-file: .github/release-please/config.json | |
manifest-file: .github/release-please/manifest.json | |
npm_publish: | |
name: Publish to npm | |
runs-on: ubuntu-latest | |
environment: npm | |
needs: release_please | |
if: needs.release_please.outputs.releaseCreated | |
permissions: | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
show-progress: false | |
- uses: actions/setup-node@v4 | |
with: | |
# The 22.11.0 is instead of lts per https://github.com/mochajs/mocha/issues/5278 | |
node-version: '22.11.0' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install dependencies | |
run: npm ci --ignore-scripts --force --no-fund --no-audit | |
- run: npm publish --provenance --access public --tag=next | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |