-
Notifications
You must be signed in to change notification settings - Fork 13
48 lines (42 loc) · 1.33 KB
/
angular-build.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
46
47
48
on: push
name: Build Angular
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.14.x]
steps:
- uses: actions/checkout@v2
with:
#persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- name: Cache node modules
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Node ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Installing modules (npm i)
run: |
npm i
- name: Updating version for ZPM
run: |
node ./.github/sync-zpm-version
- name: Building DSW and addons
run: |
npm run build:addons
npm run build
- name: Deploying dist to master
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add ./dist/*
git add ./module.xml
git commit -am "Automated commit of dist"
git push