Bump rollup from 4.18.0 to 4.22.4 #46
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: Deploy site to gh-pages | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
deploy: | |
name: Deploy updates | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
- name: Clean install dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build | |
- name: Check version | |
id: version-check | |
uses: Endbug/version-check@v2 | |
with: | |
diff-search: true | |
- name: Set version tag on last commit | |
if: steps.version-check.outputs.changed == 'true' | |
run: | | |
git tag v${{ steps.version-check.outputs.version }} | |
- name: Push version tag | |
if: steps.version-check.outputs.changed == 'true' | |
uses: ad-m/github-push-action@v0.8.0 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} | |
tags: true | |
- name: Deploy site | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs | |
destination_dir: docs |