Skip to content

Commit

Permalink
Fix/prod deployment (#484)
Browse files Browse the repository at this point in the history
* update gitflow-maven-plugin from 1.16.0 to 1.21.0

* added GIT_HUB_PACKAGES_ACCESS_TOKEN_WRITE

* added profile github-packages

* added npm configuration

* Update code-checks.yml
  • Loading branch information
Bock4Soft committed May 14, 2024
1 parent 6cb2cc7 commit e54a587
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/code-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
npm run build
working-directory: client
env:
NODE_AUTH_TOKEN: ${{ secrets.GIT_HUB_PACKAGES_ACCESS_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GIT_HUB_PACKAGES_ACCESS_TOKEN_WRITE }}
- name: Set up JDK
uses: actions/setup-java@v1
with:
Expand All @@ -35,5 +35,5 @@ jobs:
run: mvn clean install -s .mvn/settings.xml
env:
GIT_HUB_USERNAME: ${{ secrets.GIT_HUB_USERNAME }}
GIT_HUB_PACKAGES_ACCESS_TOKEN: ${{ secrets.GIT_HUB_PACKAGES_ACCESS_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GIT_HUB_PACKAGES_ACCESS_TOKEN }}
GIT_HUB_PACKAGES_ACCESS_TOKEN: ${{ secrets.GIT_HUB_PACKAGES_ACCESS_TOKEN_WRITE }}
NODE_AUTH_TOKEN: ${{ secrets.GIT_HUB_PACKAGES_ACCESS_TOKEN_WRITE }}
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ jobs:
run: |
git config user.email "actions@dipa.online"
git config user.name "DiPA GitHub Actions"
- name: Einstellen des Autorisierungstoken
run: |
npm config set //npm.pkg.github.com/:_authToken=${{ secrets.GIT_HUB_PACKAGES_ACCESS_TOKEN_WRITE }}
- name: Set up Node.js
uses: actions/setup-node@v2.1.5
with:
node-version: 14.x
registry-url: "https://npm.pkg.github.com"
scope: "@dipa-projekt"
- name: Release with Maven
run: mvn -s .mvn/settings.xml -B -DreleaseVersion=${{ github.event.inputs.release_version }} gitflow:release --file pom.xml
env:
Expand Down

0 comments on commit e54a587

Please sign in to comment.