refactor: jsonErrorReplacer to use explicit Error type (#125) #87
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: Website | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
inject-audits: | |
name: Inject audits | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '[skip ci]')" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: .nvmrc | |
cache: yarn | |
- name: Install | |
run: yarn install --immutable | |
- name: Build | |
run: yarn build:umd | |
- name: Inject | |
run: yarn tsx scripts/inject-audits-website.ts | |
- name: Upload website | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: website | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '[skip ci]')" | |
needs: [inject-audits] | |
permissions: | |
pages: write | |
id-token: write | |
concurrency: | |
group: website-deploy | |
cancel-in-progress: true | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up pages | |
uses: actions/configure-pages@v3 | |
- name: Deploy | |
id: deployment | |
uses: actions/deploy-pages@v1 |