Skip to content

Google Sheets beta candidate #340

Google Sheets beta candidate

Google Sheets beta candidate #340

Workflow file for this run

on: push
jobs:
test:
if: github.ref != 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm install pnpm@7 -g
- run: pnpm install
- run: pnpm run lint
- run: pnpm run prettier:check
# - run: pnpm run compile
- run: pnpm run test
- run: pnpm run build
- run: pnpm run docs:generate
publish:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm install pnpm@7 -g
- run: pnpm install
- run: pnpm run lint
- run: pnpm run prettier:check
# - run: pnpm run compile
- run: pnpm run test
- run: pnpm run build
- run: pnpm run docs:generate
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: pnpm run changeset:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# Popular action to deploy to GitHub Pages:
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./apps/docs/build