chore(release): 0.1.1 release notes #7
This file contains hidden or 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
# This workflow will build and unit test the project. | |
# If the workflow is running on the "main" branch, then | |
# semantic-release is also run to create a new release (if | |
# warranted by the new commits being built). | |
name: Build/Release | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read # for checkout | |
jobs: | |
build: | |
name: Build/Test (Java ${{matrix.java-version}}) | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java-version: ['21', '23', '24'] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Java ${{matrix.java-version}} | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{matrix.java-version}} | |
distribution: 'adopt' | |
cache: 'maven' | |
- name: Build & Test | |
run: mvn -B clean package | |
create-release: | |
needs: build | |
name: Semantic Release | |
if: "github.ref_name == 'main' && github.event_name != 'pull_request'" | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write # to be able to publish a GitHub release | |
issues: write # to be able to comment on released issues | |
pull-requests: write # to be able to comment on released pull requests | |
id-token: write # to enable use of OIDC for npm provenance | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 # for fetching tags, required for semantic-release | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "lts/*" | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Install Publishing Tools | |
run: | | |
pip install bump-my-version | |
npm install | |
- name: Verify the integrity of provenance attestations and registry signatures | |
run: npm audit signatures | |
- name: Create GitHub token | |
uses: actions/create-github-app-token@v1 | |
id: app-token | |
with: | |
app-id: ${{ vars.CI_APP_ID }} | |
private-key: ${{ secrets.CI_PRIVATE_KEY }} | |
- name: Run semantic-release | |
env: | |
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} | |
run: npm run semantic-release |