Skip to content

Commit 1a4130b

Browse files
Add a github workflow action for the build
1 parent 7ac6439 commit 1a4130b

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

firestore/.github/workflows/build.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: build
2+
on: push
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v2
8+
- uses: actions/setup-node@v2
9+
with:
10+
node-version: '12'
11+
12+
- name: Cache node modules
13+
uses: actions/cache@v2
14+
env:
15+
cache-name: cache-node-modules
16+
with:
17+
# npm cache files are stored in `~/.npm` on Linux/macOS
18+
path: ~/.npm
19+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
20+
restore-keys: |
21+
${{ runner.os }}-build-${{ env.cache-name }}-
22+
${{ runner.os }}-build-
23+
${{ runner.os }}-
24+
25+
- name: Install
26+
run: npm install
27+
- name: Build
28+
run: npm run build

0 commit comments

Comments
 (0)