chore: version packages (#52) #10
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: Publish docs | |
| on: | |
| push: | |
| tags: | |
| - "@shajara/docs@*" | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Set up Node.js and Yarn | |
| id: setup-yarn | |
| uses: ./.github/actions/setup-yarn | |
| - name: Build and upload | |
| uses: withastro/action@v6 | |
| with: | |
| node-version: ${{ steps.setup-yarn.outputs.node-version }} | |
| build-cmd: yarn workspaces foreach -Rt --from @shajara/docs run build | |
| cache-dir: apps/docs/node_modules/.astro | |
| out-dir: apps/docs/dist | |
| deploy: | |
| name: Deploy | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy | |
| id: deployment | |
| uses: actions/deploy-pages@v5 |