website: fix a build error #90
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: CD (after merge to master) | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy-website: | |
name: Deploy website to Github Pages | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v3 | |
# Predictable node version. Going to node 18 build started to fail with some openssl provider error | |
- name: Use Node 16 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: yarn | |
- name: Install and Build π§ | |
run: | | |
yarn | |
yarn workspace website run build | |
- name: Deploy π | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: packages/website/build | |
clean-exclude: "-" | |
maybe-release-packages: | |
name: Release package(s) if needed | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v3 | |
- name: Use Node 16 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: yarn | |
- name: Check NPM Auth π | |
run: | | |
yarn npm whoami | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Install Dependencies π§ | |
run: | | |
yarn | |
- name: Build π¨ | |
run: | | |
yarn run build:public | |
- name: Publish on NPM π¦ | |
run: | | |
yarn run release:public | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |