From 7284abb9e5201af0b23d3e16f28796acb7a29c82 Mon Sep 17 00:00:00 2001 From: Ludovico Fischer Date: Fri, 17 Jul 2026 15:57:51 +0200 Subject: [PATCH] chore: add publish workflow --- .github/workflows/publish.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..f51467b --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,30 @@ +name: Publish Package + +on: workflow_dispatch + +permissions: + id-token: write # Required for OIDC + contents: read + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + with: + persist-credentials: false + - uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9 + with: + version: 11.13.1 + - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 + with: + node-version: 24 + registry-url: 'https://registry.npmjs.org' + package-manager-cache: false # never use caching in release builds + - run: pnpm install --frozen-lockfile + - name: Lint + run: pnpm lint + - name: Run tests + run: pnpm test + - name: Publish + run: pnpm publish