This repository was archived by the owner on Mar 18, 2025. It is now read-only.
🛡️ Security / Webpack dev middleware update #252
This file contains hidden or 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
# GitHub Actions docs | |
# https://help.github.com/en/articles/about-github-actions | |
# https://help.github.com/en/articles/workflow-syntax-for-github-actions | |
name: CI | |
# Controls when the action will run. | |
on: | |
# Triggers the workflow on push or pull request events but only for the develop branch | |
push: | |
branches: [ develop ] | |
pull_request: | |
branches: [ develop ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
lint: | |
runs-on: ubuntu-18.04 | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Use Node.js 12.8 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 12.8 | |
- name: Install dependencies | |
run: npm i | |
- name: Lint | |
run: npm run lint | |
build_lib: | |
runs-on: ubuntu-18.04 | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Use Node.js 12.8 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 12.8 | |
- name: Install dependencies | |
run: npm i | |
- name: build:prod:clean | |
run: npm run build:prod:clean |