Update maven.yml
This commit is contained in:
parent
17b9cc2624
commit
fc246831fd
1 changed files with 21 additions and 11 deletions
32
.github/workflows/maven.yml
vendored
32
.github/workflows/maven.yml
vendored
|
@ -23,17 +23,27 @@ jobs:
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn -B package --file pom.xml
|
run: mvn -B package --file pom.xml
|
||||||
|
|
||||||
create_release:
|
release:
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Generate tag
|
|
||||||
id: tag
|
- name: Setup Node.js
|
||||||
run: echo "::set-output name=tag::$(date +'%Y%m%d%H%M%S')"
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
- name: Release new version to NPM
|
node-version: '20.x' # Stellen Sie sicher, dass diese Version mit semantic-release kompatibel ist.
|
||||||
env:
|
cache: 'npm'
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
- name: Install semantic-release
|
||||||
run: npx semantic-release
|
run: npm install -g semantic-release@latest @semantic-release/changelog @semantic-release/git
|
||||||
|
|
||||||
|
- name: Configure Git
|
||||||
|
run: |
|
||||||
|
git config user.name "GitHub Actions"
|
||||||
|
git config user.email "actions@github.com"
|
||||||
|
|
||||||
|
- name: Run semantic-release
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: npx semantic-release
|
||||||
|
|
Loading…
Reference in a new issue