-
-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (33 loc) · 790 Bytes
/
Copy pathbuild.yml
File metadata and controls
40 lines (33 loc) · 790 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
39
40
name: Build the extension
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Cache
uses: actions/cache@v2.1.7
with:
# A list of files, directories, and wildcard patterns to cache and restore
path: |
node_modules/
out/
yarn.lock
# An explicit key for restoring and saving the cache
key: cache1
- name: Build
run: |
yarn
yarn build
- uses: actions/upload-artifact@v2
with:
name: extension
path: web-ext-artifacts/*