Update step name #3
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: Build | |
on: | |
push: | |
branches: | |
- main | |
- master | |
- staging | |
- develop | |
pull_request: | |
branches: | |
- main | |
- master | |
- staging | |
- develop | |
jobs: | |
assets: | |
name: Build plugin assets | |
runs-on: ubuntu-latest | |
env: | |
YARN_ENABLE_HARDENED_MODE: 1 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Switch to newest Yarn version | |
run: | | |
corepack enable | |
yarn set version berry | |
- name: Setup Yarn in Node | |
uses: actions/setup-node@v4 | |
with: | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn install --immutable --check-cache --check-resolutions | |
- name: Lint CSS | |
run: yarn run lint:css | |
- name: Lint JS | |
run: yarn run lint:js | |
- name: Build assets | |
run: yarn run build | |
- name: Archive production artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: plugin-assets | |
path: ./build |