Repository navigation
Add badges #9
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: Deploy | |
| # Builds the Next.js static export in website/ and publishes it to the gh-pages | |
| # branch, which is what javier.xyz/react-number-easing rewrites to via | |
| # javierbyte.github.io/react-number-easing. Package publishing is handled by the | |
| # separate publish workflow; this site keeps a manually updated, exact npm version. | |
| on: | |
| push: | |
| branches: [main, master] | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| concurrency: | |
| group: deploy | |
| cancel-in-progress: true | |
| defaults: | |
| run: | |
| working-directory: website | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| package_json_file: website/package.json | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version-file: website/.nvmrc | |
| cache: pnpm | |
| cache-dependency-path: | | |
| pnpm-lock.yaml | |
| website/pnpm-lock.yaml | |
| - run: pnpm install --frozen-lockfile | |
| working-directory: . | |
| - run: pnpm build | |
| working-directory: . | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm build | |
| - uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./website/out | |
| # Next writes assets to _next/, and Jekyll skips underscore paths. | |
| enable_jekyll: false |