Add semantic release #10
Workflow file for this run
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
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build and tests | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
issues: read | |
checks: write | |
pull-requests: write | |
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 | |
#if: github.ref == 'refs/heads/main' | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "lts/*" | |
- name: Release - install dependencies | |
#if: github.ref == 'refs/heads/main' | |
run: npm ci | |
- name: Release - verify installed dependencies | |
#if: github.ref == 'refs/heads/main' | |
run: npm audit signatures | |
- name: Release - perform release | |
#if: github.ref == 'refs/heads/main' | |
run: npx semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |