@@ -27,35 +27,35 @@ jobs:
2727 # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2828
2929 steps :
30- - uses : actions/checkout@v3
31-
32- - name : Cache node modules
33- uses : actions/cache@v3
34- with :
35- path : ~/.npm
36- key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
37- restore-keys : |
38- ${{ runner.os }}-node-
30+ - uses : actions/checkout@v3
31+
32+ - name : Cache node modules
33+ uses : actions/cache@v3
34+ with :
35+ path : ~/.npm
36+ key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
37+ restore-keys : |
38+ ${{ runner.os }}-node-
39+
40+ - name : Setup Node.js ${{ matrix.node-version }}
41+ uses : actions/setup-node@v3
42+ with :
43+ node-version : ${{ matrix.node-version }}
3944
40- - name : Setup Node.js ${{ matrix.node-version }}
41- uses : actions/setup-node@v3
42- with :
43- node-version : ${{ matrix.node-version }}
44-
45- - name : Install Dependencies
46- working-directory : ${{ matrix.workDir }}
47- run : npm install
48-
49- - name : Build Application
50- working-directory : ${{ matrix.workDir }}
51- run : npm run build -- --configuration=production --base-href=/${{ matrix.base_href }}/
52-
53- - name : Deploy to GitHub
54- uses : crazy-max/ghaction-github-pages@v3
55- working-directory : ${{ matrix.workDir }}
56- if : success()
57- with :
58- target_branch : gh-pages
59- build_dir : dist
60- env :
61- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
45+ - name : Install Dependencies
46+ working-directory : ${{ matrix.workDir }}
47+ run : npm install
48+
49+ - name : Build Application
50+ working-directory : ${{ matrix.workDir }}
51+ run : npm run build -- --configuration=production --base-href=/${{ matrix.base_href }}/
52+
53+ - name : Deploy to GitHub
54+ uses : crazy-max/ghaction-github-pages@v3
55+ working-directory : ${{ matrix.workDir }}
56+ if : success()
57+ with :
58+ target_branch : gh-pages
59+ build_dir : dist
60+ env :
61+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments