chore(deps): update mavenarchetypeversion to v3.3.0 #215
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- master | |
pull_request_target: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: 'ubuntu-latest' | |
steps: | |
- name: Decide the ref to check out | |
uses: haya14busa/action-cond@v1 | |
id: condval | |
with: | |
cond: ${{ github.event_name == 'pull_request_target' }} | |
if_true: refs/pull/${{ github.event.pull_request.number }}/merge | |
if_false: ${{ github.ref }} | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
ref: ${{ steps.condval.outputs.value }} | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: 8 | |
distribution: temurin | |
server-id: ossrh | |
server-username: MAVEN_USERNAME | |
server-password: MAVEN_CENTRAL_TOKEN | |
gpg-private-key: ${{ secrets.SIGNING_KEY }} | |
gpg-passphrase: MAVEN_GPG_PASSPHRASE | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
- run: | | |
./mvnw -V -B verify | |
npm ci | |
npx semantic-release | |
env: | |
MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_TOKEN }} | |
MAVEN_GPG_PASSPHRASE: ${{ secrets.SIGNING_PASSWORD }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |