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