-
-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (37 loc) · 1003 Bytes
/
esbuild.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
name: Build and Release
on:
release:
types: [published]
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js 18.x
uses: actions/setup-node@v2
with:
node-version: 18.x
- name: Cache Node.js modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- name: Setup Python 3
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
run: yarn install --ignore-optional --frozen-lockfile
- name: Build artifact
run: yarn run build
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: ABD-${{ github.run_number }}
path: bundle.js