chore: release package (#17) #2
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: Docs | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: false | |
| jobs: | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 1. Checkout source | |
| uses: actions/checkout@v4 | |
| - name: 2. Setup Node 24 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| cache: npm | |
| - name: 3. Install dependencies | |
| run: npm ci | |
| - name: 4. Build package | |
| run: npm run build | |
| - name: 5. Build demo | |
| run: npm run demo:build | |
| - name: 6. Configure GitHub Pages | |
| id: pages | |
| uses: actions/configure-pages@v5 | |
| - name: 7. Upload Pages artifact | |
| id: artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: demo-dist | |
| - name: 8. Deploy GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |