From 2e1300ad25fb99dcffe834fc4e1cc4a00bc0d5dc Mon Sep 17 00:00:00 2001 From: Jason2866 Date: Wed, 11 Mar 2026 16:35:12 +0100 Subject: [PATCH] add gh publish flow --- .github/workflows/publish.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 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..84eb70b --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,25 @@ +name: Publish to npm + +on: + release: + types: [published] + +permissions: + id-token: write + contents: read + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: 22 + registry-url: https://registry.npmjs.org + + - run: npm install -g npm@latest + - run: npm ci + - run: npm run build + - run: npm publish --provenance --access public