From 107ca70d0fa4e657a0d9bfd85a24a5eb8637ea1a Mon Sep 17 00:00:00 2001 From: Hein Date: Wed, 23 Sep 2026 21:08:17 +0200 Subject: [PATCH] ci(publish): add GitHub Actions workflow for package publishing --- .github/workflows/publish_github.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/publish_github.yml diff --git a/.github/workflows/publish_github.yml b/.github/workflows/publish_github.yml new file mode 100644 index 0000000..666654b --- /dev/null +++ b/.github/workflows/publish_github.yml @@ -0,0 +1,26 @@ +name: Publish Package + +on: + push: + tags: + - "v*" + +permissions: + id-token: write # Required for OIDC + contents: read + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + + - uses: actions/setup-node@v6 + with: + node-version: "24" + registry-url: "https://registry.npmjs.org" + package-manager-cache: false # never use caching in release builds + - run: npm ci + - run: npm run build --if-present + - run: npm test + - run: npm publish # Or: npm stage publish