chore(deps): update dependency typedoc to v0.26.9 (#3390) #3046
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: Build and Publish | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build_and_publish: | |
name: "Build and publish" | |
permissions: | |
contents: write # create Git tags | |
if: ${{ github.repository == 'microsoft/rnx-kit' }} | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
filter: blob:none | |
fetch-depth: 0 | |
- name: Setup the toolchain | |
uses: ./.github/actions/setup-toolchain | |
- name: Install package dependencies | |
run: | | |
# `npm pack` fails in pnpm mode when using npm 9+ (bundled with Node 18+) | |
# because of symlinks. See: https://github.com/npm/cli/issues/5007 | |
yarn config set nodeLinker node-modules | |
yarn | |
- name: Build and test packages | |
run: | | |
yarn build:ci:all | |
- name: Bundle packages | |
run: | | |
yarn bundle | |
- name: Create release PR or publish to npm | |
uses: changesets/action@v1 | |
with: | |
publish: npm run publish:changesets | |
version: npm run version:changesets | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
website: | |
name: "Publish website" | |
permissions: | |
contents: write # deploy to GitHub Pages (peaceiris/actions-gh-pages) | |
needs: build_and_publish | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: "20" | |
- name: Install package dependencies | |
run: | | |
yarn | |
working-directory: docsite | |
- name: Build website | |
run: | | |
yarn build | |
working-directory: docsite | |
- name: Deploy website | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docsite/build | |
user_name: github-actions[bot] | |
user_email: 41898282+github-actions[bot]@users.noreply.github.com |