From 85f14c53e4a274bec2740652c4f1afa781ad5d26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Seidel?= Date: Mon, 6 Feb 2023 17:13:26 +0100 Subject: [PATCH 1/2] fix tokens --- .github/workflows/github-action-release-ae.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/github-action-release-ae.yml b/.github/workflows/github-action-release-ae.yml index 4bb612f..0898456 100644 --- a/.github/workflows/github-action-release-ae.yml +++ b/.github/workflows/github-action-release-ae.yml @@ -16,7 +16,6 @@ jobs: uses: actions/checkout@v3 with: repository: ${{ env.ACTIONS_REPO }} - token: ${{ secrets.CI_KIT_TOKEN }} path: ./actions - name: "Get the latest version of the package" run: | @@ -34,7 +33,6 @@ jobs: with: repo: ${{ env.VERSIONING_TOOL_REPO }} file: "conventional-commit" - token: ${{ secrets.CI_KIT_TOKEN }} - id: bump name: "Bump version" @@ -59,7 +57,6 @@ jobs: uses: actions/checkout@v3 with: repository: simatic-ax/actions - token: ${{ secrets.CI_KIT_TOKEN }} path: ./actions - name: "Install apax and dependencies" @@ -74,7 +71,7 @@ jobs: run: | apax login \ --registry "https://npm.pkg.github.com" \ - --password ${{ secrets.CI_KIT_TOKEN }} + --password ${{ secrets.DEPLOY_KEY }} - name: "Download artifact with version" uses: actions/download-artifact@v3 From fd0063ca5b3318bad2ba5a7ea50737f0d5c74fc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Seidel?= Date: Mon, 6 Feb 2023 17:16:47 +0100 Subject: [PATCH 2/2] fix further tokens --- .github/workflows/github-action-release-ae.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/github-action-release-ae.yml b/.github/workflows/github-action-release-ae.yml index 0898456..0d956b1 100644 --- a/.github/workflows/github-action-release-ae.yml +++ b/.github/workflows/github-action-release-ae.yml @@ -20,7 +20,7 @@ jobs: - name: "Get the latest version of the package" run: | echo "@simatic-ax:registry=https://npm.pkg.github.com/" >> .npmrc - echo "//npm.pkg.github.com/:_authToken=${{ secrets.CI_KIT_TOKEN }}" >> .npmrc + echo "//npm.pkg.github.com/:_authToken=${{ secrets.DEPLOY_KEY }}" >> .npmrc echo "always-auth = true" >> .npmrc cat .npmrc echo "VERSION=$(npm show @${{ env.SCOPE }}/template-${{ env.PROJECT_NAME }} version --registry=https://npm.pkg.github.com --scope=${{ env.SCOPE }})" >> $GITHUB_ENV @@ -33,6 +33,7 @@ jobs: with: repo: ${{ env.VERSIONING_TOOL_REPO }} file: "conventional-commit" + token: ${{ secrets.DEPLOY_KEY }} - id: bump name: "Bump version"