Create ci-pr workflow #3
Workflow file for this run
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: CI PR | |
on: | |
pull_request: | |
permissions: | |
contents: read | |
pull-requests: write | |
jobs: | |
# build and deploy PR | |
build: | |
name: Build PR | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# agent may give node which doesn't work for us | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.2.0 | |
# do site build for PR | |
- name: Yarn build PR | |
env: | |
NODE_OPTIONS: '--openssl-legacy-provider' | |
run: | | |
yarn install | |
yarn run fix | |
yarn build |