Skip to content

Merge pull request #568 from pmndrs/dev #75

Merge pull request #568 from pmndrs/dev

Merge pull request #568 from pmndrs/dev #75

Workflow file for this run

name: CD
on:
workflow_dispatch:
push:
tags:
- "*"
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Install PNPM
uses: pnpm/action-setup@v2
with:
version: 8
- name: Install Node
uses: actions/setup-node@v3
with:
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Publish
id: publish
uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}
ignore-scripts: false
- if: ${{ steps.publish.outputs.type }}
run: |
echo "Version changed: ${{ steps.publish.outputs.old-version }} → ${{ steps.publish.outputs.version }}"
- if: ${{ !steps.publish.outputs.type }}
run: |
pnpm run prepublishOnly
- name: Deploy
run: pnpm run deploy
- uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: public
target-folder: public
single-commit: true