Skip to content

Commit

Permalink
chore: use GITHUB_TOKEN
Browse files Browse the repository at this point in the history
Signed-off-by: Ruben Romero Montes <[email protected]>
  • Loading branch information
ruromero committed Nov 14, 2023
1 parent 3a47484 commit c5225f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
with:
definition-file: api/v4/openapi.yaml
deploy-packages:
if: github.repository_owner == 'RHEcosystemAppEng'
runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -52,8 +53,8 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
- name: Build and Publish to GitHub Maven Packages
run: mvn -B deploy --file pom.xml
env:
GITHUB_TOKEN: ${{ github.token }}
NODE_AUTH_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c5225f4

Please sign in to comment.