From ce59cc31a88cb099535ab346c4173a8a9dcfb64d Mon Sep 17 00:00:00 2001 From: alisahinozcelik Date: Sat, 25 Nov 2023 18:22:45 +0300 Subject: [PATCH] build: github actions update --- .github/workflows/publish.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index cad3819..0e7b6a9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,9 +5,18 @@ on: types: [created] jobs: - prepare: + prepare-v17: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 - - run: npm version ${{github.ref}} --no-git-tag-version + with: + node-version: '20.x' + registry-url: 'https://registry.npmjs.org' + - run: npm i + - run: node_modules/.bin/nx run ng-utils:build + - run: cd ./dist/libs/ng-utils && npm version 17${{github.ref_name}} --no-git-tag-version + - uses: actions/upload-artifact@v3 + with: + name: package-v17 + path: dist/libs/ng-utils/