Skip to content

Add semantic release #17

Add semantic release

Add semantic release #17

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: Build and tests
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
checks: write
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
uses: actions/checkout@v4
- uses: cachix/install-nix-action@v21
with:
nix_path: nixpkgs=https://github.com/nixos/nixpkgs/archive/9c8ff8b426a8b07b9e0a131ac3218740dc85ba1e.tar.gz
- name: Kind setup
id: kind
run: nix-shell --command "make kind setup"
- name: Run integration tests
id: integrated-test
run: nix-shell --command "make build integrated-test"
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: success() || failure()
with:
files: |
test-reports/*-tests-report.xml
- name: Build executables for other platforms
id: build-other-platforms
run: nix-shell --command "make build-other-platforms"
- name: Release - setup Node.js
uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Release - install dependencies
run: npm ci
- name: Release - verify installed dependencies
run: npm audit signatures
- name: Release - perform the release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}