Skip to content

chore(deps): lock file maintenance j:cdx-227 (#169) #110

chore(deps): lock file maintenance j:cdx-227 (#169)

chore(deps): lock file maintenance j:cdx-227 (#169) #110

Workflow file for this run

name: Create release
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
jobs:
release:
runs-on: ubuntu-latest
environment: 'Release'
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: '18'
- name: Install dependencies
run: npm ci
- name: Get Release Token
run: npm run get-token
env:
RELEASER_APP_ID: ${{ secrets.RELEASER_APP_ID }}
RELEASER_PRIVATE_KEY: ${{ secrets.RELEASER_PRIVATE_KEY }}
RELEASER_CLIENT_ID: ${{ secrets.RELEASER_CLIENT_ID }}
RELEASER_CLIENT_SECRET: ${{ secrets.RELEASER_CLIENT_SECRET }}
RELEASER_INSTALLATION_ID: ${{ secrets.RELEASER_INSTALLATION_ID }}
- uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
name: Set up Java
with:
java-version: '11'
distribution: 'adopt'
- name: Build Java package
run: mvn clean package
- uses: google-github-actions/release-please-action@e4dc86ba9405554aeba3c6bb2d169500e7d3b4ee # v4.1.1
name: Release Java package
with:
release-type: maven
default-branch: main
pull-request-title-pattern: 'chore${scope}: release${component} ${version} [skip-ci]'
token: ${{ env.RELEASE_TOKEN }}