This repository was archived by the owner on Feb 25, 2026. It is now read-only.
test-docs #11383
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: test-docs | |
| permissions: | |
| packages: write | |
| id-token: write | |
| contents: read | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 * * * *" | |
| push: | |
| branches: | |
| - "main" | |
| jobs: | |
| test-docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20.11.1" | |
| - name: Cache Yarn dependencies | |
| uses: actions/cache@v4 | |
| id: yarn-cache | |
| with: | |
| path: ~/.cache/yarn | |
| key: ${{ runner.os }}-yarn-${{ hashFiles('./packages/logger/yarn.lock') }} | |
| - name: Install dependencies | |
| run: yarn | |
| - name: Check @texturehq/events package version | |
| run: > | |
| LATEST=$(yarn info @texturehq/events -A --json | jq '.data["dist-tags"].latest'); \ | |
| CURRENT=$(cat package.json | jq '.dependencies["@texturehq/events"]'); \ | |
| if [[ "$LATEST" != "$CURRENT" ]]; then | |
| echo "The @texturehq/events package is outdated"; | |
| echo "Latest version: $LATEST"; | |
| echo "Current version: $CURRENT"; | |
| exit 1; | |
| fi | |