-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (47 loc) · 1.08 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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