-
Notifications
You must be signed in to change notification settings - Fork 1.2k
38 lines (35 loc) · 933 Bytes
/
widget_build.yml
File metadata and controls
38 lines (35 loc) · 933 Bytes
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
name: Widget Build
permissions:
contents: read
on:
pull_request:
workflow_dispatch:
inputs:
commit_id:
description: 'Branch or Commit ID (optional)'
required: false
type: string
schedule:
# Run at 10:00 UTC every day
- cron: "00 10 * * *"
jobs:
build_widget:
defaults:
run:
shell: bash
working-directory: ./client/graphpaper-inline
runs-on: ubuntu-latest
steps:
- name: Checkout repo at ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
uses: actions/checkout@v6
with:
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
- uses: actions/setup-node@v6
with:
node-version: 18
- name: Install dependencies
run: |
npm install
- name: Build
run: |
./build-to-guidance.sh