From 8e39d6312ff9edbfe4867be3593bd95efaaa228b Mon Sep 17 00:00:00 2001 From: Filip Myslinski Date: Fri, 27 Dec 2024 01:08:07 +0100 Subject: [PATCH] fix: published build output instead of source --- .github/workflows/cd.yml | 2 +- core/package.json | 2 +- core/project.json | 8 ++++++++ package.json | 1 - 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 151e41f..8ed9906 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -95,4 +95,4 @@ jobs: - name: Publish to NPM env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - run: pnpx nx release publish core --access=public + run: pnpx nx run core:publish diff --git a/core/package.json b/core/package.json index f8f73a0..0b6aac2 100644 --- a/core/package.json +++ b/core/package.json @@ -1,6 +1,6 @@ { "name": "@garudalinux/core", - "version": "0.0.1", + "version": "0.0.2", "description": "Component library for webpages of Garuda Linux for Angular based on PrimeNG", "keywords": [ "garuda", diff --git a/core/project.json b/core/project.json index 4ed9a2f..8f67d25 100644 --- a/core/project.json +++ b/core/project.json @@ -31,6 +31,14 @@ }, "lint": { "executor": "@nx/eslint:lint" + }, + "publish": { + "executor": "@nx/js:release-publish", + "dependsOn": ["build"], + "options": { + "access": "public", + "packageRoot": "{workspaceRoot}/dist/core" + } } } } diff --git a/package.json b/package.json index c917be5..499fc77 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,5 @@ { "name": "garuda-ng", - "version": "0.0.1", "description": "Component library for webpages of Garuda Linux for Angular based on PrimeNG", "keywords": [ "garuda",