From 5e239a3b9a4eb8836e1ab287fba3575c3b21e58b Mon Sep 17 00:00:00 2001 From: Thibaut Baillet Date: Fri, 6 Feb 2026 16:14:41 +0100 Subject: [PATCH] Add github action --- .github/workflows/release.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..9c25236 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,35 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Release + +on: + push: + tags: + - "v*" + +jobs: + build: + runs-on: ubuntu-latest + + permissions: + id-token: write # Required for OIDC (used for npm publish with Trusted publishing) + packages: write + contents: write + + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: lts/* + cache: yarn + + - run: yarn install --pure-lockfile + - run: yarn prepack + + - name: Publish + env: + NPM_CONFIG_PROVENANCE: true + run: | + npm publish --no-git-checks --access public --registry https://registry.npmjs.org