Skip to content

Commit

Permalink
Merge pull request #14 from simatic-ax/fix_ci_workflow
Browse files Browse the repository at this point in the history
fix: Fix ci workflow
  • Loading branch information
sjuergen authored Feb 6, 2023
2 parents 6df6bc2 + fd0063c commit 8bc3dc5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/github-action-release-ae.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ 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: |
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
Expand All @@ -34,7 +33,7 @@ jobs:
with:
repo: ${{ env.VERSIONING_TOOL_REPO }}
file: "conventional-commit"
token: ${{ secrets.CI_KIT_TOKEN }}
token: ${{ secrets.DEPLOY_KEY }}

- id: bump
name: "Bump version"
Expand All @@ -59,7 +58,6 @@ jobs:
uses: actions/checkout@v3
with:
repository: simatic-ax/actions
token: ${{ secrets.CI_KIT_TOKEN }}
path: ./actions

- name: "Install apax and dependencies"
Expand All @@ -74,7 +72,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
Expand Down

0 comments on commit 8bc3dc5

Please sign in to comment.