Skip to content

[PR] NodeJS 18, Automation Updates, PR Workflow #1

[PR] NodeJS 18, Automation Updates, PR Workflow

[PR] NodeJS 18, Automation Updates, PR Workflow #1

Workflow file for this run

name: PR Build
on:
pull_request:
branches:
- master
jobs:
build-deploy-gh-pages:
name: Build / Deploy to gh-pages and Preview
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set-up Node
uses: actions/setup-node@v1
with:
node-version: 18
- name: npm install
run: |
npm install
- name: npm build frontend
env:
NODE_OPTIONS: --openssl-legacy-provider
run: |
npm run build
env:

Check failure on line 28 in .github/workflows/pr.yml

View workflow run for this annotation

GitHub Actions / PR Build

Invalid workflow file

The workflow is not valid. .github/workflows/pr.yml (Line: 28, Col: 9): 'env' is already defined
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}