Skip to content

Merge pull request #72 from ximing/pnpm-update #26

Merge pull request #72 from ximing/pnpm-update

Merge pull request #72 from ximing/pnpm-update #26

Workflow file for this run

name: Example Build & Deploy to GitHub Pages
on:
push:
branches:
- master
- v4
tags:
- v1
paths:
- 'packages/website/**'
- '.github/**'
repository_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@master
with:
persist-credentials: false
- name: Cache node modules
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: use Node.js 14
uses: actions/setup-node@v1
with:
node-version: '14.x'
- name: npm script 🔧
run: |
pnpm install --registry=https://registry.npmjs.org
pnpm run build:website
env:
CI: true
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: packages/website/dist
GIT_CONFIG_NAME: ${{ secrets.GIT_CONFIG_NAME}}
GIT_CONFIG_EMAIL: ${{ secrets.GIT_CONFIG_EMAIL}}