-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (32 loc) · 931 Bytes
/
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
name: Build
on:
pull_request_target:
branches:
- master
jobs:
build:
name: Build and commit updated assets
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
# Custom token to allow commits trigger other workflows.
token: ${{ secrets.REQUIRED_COM_REPO_ACCESS_PAT }}
ref: ${{ github.event.pull_request.head.ref }}
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
cache-dependency-path: 'package.json'
- name: Install Node.js dependencies
run: npm i
- name: Run build command
run: npm run build
- name: Commit updated assets files
uses: EndBug/add-and-commit@v9
with:
message: "[auto] Update assets"
add: "assets"