From 39f12c8b091ae530035e1d8aca0a076430808ddc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Musia=C5=82?= Date: Thu, 14 Mar 2024 17:29:07 +0100 Subject: [PATCH] docs: workflow for publishing new release versions --- .github/workflows/publish.yml | 12 +++++++++--- package.json | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4087368..d352e75 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,7 +1,13 @@ name: Publish package to GitHub Packages +#on: +# release: +# types: [published] on: - release: - types: [published] + pull_request: + branches: + - master + - main + - next jobs: build: runs-on: ubuntu-latest @@ -17,6 +23,6 @@ jobs: registry-url: 'https://npm.pkg.github.com' scope: '@boldare' - run: npm ci - - run: npm publish + - run: npm run publish env: NODE_AUTH_TOKEN: ${{ secrets.BOLDARE_GITHUB_TOKEN }} diff --git a/package.json b/package.json index 00c5c53..8e032de 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "format": "nx format:write", "prepare": "husky" }, - "private": true, + "private": false, "dependencies": { "@angular/animations": "~17.0.0", "@angular/cdk": "^17.0.5",