From 1eefab834066c31817eee7742fc3712005eea1bb Mon Sep 17 00:00:00 2001 From: eksrha <58111764+eksrha@users.noreply.github.com> Date: Thu, 9 Feb 2023 09:55:05 +0100 Subject: [PATCH 1/3] remove secrets from matrix --- .github/workflows/release.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f261713..14e4c77 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,13 +19,6 @@ jobs: build: runs-on: ubuntu-latest needs: create_release - strategy: - matrix: - include: - - registry: https://npm.pkg.github.com - token: ${{ secrets.GITHUB_TOKEN }} - - registry: https://registry.npmjs.org - token: ${{ secrets.NPM_ACCESS_TOKEN }} steps: - name: Checkout code uses: actions/checkout@v3 @@ -34,7 +27,7 @@ jobs: uses: actions/setup-node@v3 with: node-version: '16.x' - registry-url: ${{ matrix.registry }} + registry-url: 'https://registry.npmjs.org' scope: '@fullstack-devops' - name: install packages @@ -46,7 +39,7 @@ jobs: working-directory: dist/ng-mat-components run: yarn publish --access public --new-version ${{ needs.create_release.outputs.version }} --no-git-tag-version env: - NODE_AUTH_TOKEN: ${{ matrix.token }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }} publish_gh_release: runs-on: ubuntu-latest From c7597df9cfae1299613c6ca881ee9bd97fa4f743 Mon Sep 17 00:00:00 2001 From: eksrha <58111764+eksrha@users.noreply.github.com> Date: Thu, 9 Feb 2023 10:21:04 +0100 Subject: [PATCH 2/3] use npm insted of yarn :/ --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 14e4c77..a753599 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,7 +37,9 @@ jobs: - name: yarn publish working-directory: dist/ng-mat-components - run: yarn publish --access public --new-version ${{ needs.create_release.outputs.version }} --no-git-tag-version + run: | + npm version ${{ needs.create_release.outputs.version }} + npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }} From 98e277e1cba5aaa1cb3bf7525a6642d80b867a7c Mon Sep 17 00:00:00 2001 From: eksrha <58111764+eksrha@users.noreply.github.com> Date: Thu, 9 Feb 2023 10:47:37 +0100 Subject: [PATCH 3/3] set registry --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a753599..80d1263 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,6 +39,7 @@ jobs: working-directory: dist/ng-mat-components run: | npm version ${{ needs.create_release.outputs.version }} + npm set registry https://registry.npmjs.org/ npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}