new-version #38
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: New JSFNS version responder | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| tag: | |
| description: 'Optional tag (informational only — build always uses latest)' | |
| required: false | |
| repository_dispatch: | |
| types: [new-version] | |
| concurrency: | |
| group: docs-rebuild | |
| cancel-in-progress: true | |
| jobs: | |
| new-jsfns-version: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Debounce simultaneous dispatches | |
| run: sleep 60 | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| token: ${{ secrets.ACCESS_TOKEN }} | |
| - uses: pnpm/action-setup@v6 | |
| with: | |
| version: latest | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: latest | |
| cache: pnpm | |
| - name: Install | |
| run: pnpm install | |
| - name: Build | |
| env: | |
| BASE_PATH: /jsfns | |
| run: pnpm build | |
| - name: Deploy to jsfns gh-pages | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| personal_token: ${{ secrets.ACCESS_TOKEN }} | |
| external_repository: Tokimon/jsfns | |
| publish_branch: gh-pages | |
| publish_dir: ./docs |