-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (32 loc) · 943 Bytes
/
pull_request.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
# This is a basic workflow to help you get started with Actions
name: Pull Request
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
name: Pull Request
runs-on: ubuntu-latest
steps:
- name: Cache multiple paths
uses: actions/cache@v2
with:
path: |
~/cache
!~/cache/exclude
**/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "14"
check-latest: true
- name: Install dependancies
run: npm install
- name: Build project
run: npm run pack
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}