Update releases.yml

Updated the workflow to avoid installing node dependencies twice.
pull/11/head
Ruslan Baidan 2022-10-06 09:14:56 +02:00 committed by GitHub
parent ead469f096
commit 4ddb6c42d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 9 deletions

View File

@ -48,19 +48,24 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: |
npm install
- name: Install ng-anr
uses: actions/checkout@v3
with:
repository: monarc-project/ng-anr
ref: ${{ steps.latestrelease.outputs.releasetag }}
path: './node_modules/ng_anr'
- name: Install ng-anr dependencies
run: |
npm install
working-directory: node_modules/ng_anr/
- name: Install ng-backoffice
uses: actions/checkout@v3
with:
repository: monarc-project/ng-backoffice
ref: ${{ steps.latestrelease.outputs.releasetag }}
path: './node_modules/ng_backoffice'
- name: Install ng-backoffice dependencies
run: |
npm install
working-directory: node_modules/ng_backoffice/
cd node_modules/ng_backoffice
npm ci
# final "cleanup"
- name: post job