From b31fbe03fa9a6e5feb62ed427b9b865d0191db7f Mon Sep 17 00:00:00 2001 From: Dennis Twardowsky Date: Sun, 8 Feb 2026 16:54:57 +0100 Subject: [PATCH] Update NPMjs publish configuration --- .github/workflows/publish.yml | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c658b87..6aca50a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,18 +1,25 @@ -name: Publish Package to npmjs +name: Publish Package + on: - release: - types: [created] + push: + tags: + - 'v*' + +permissions: + id-token: write # Required for OIDC + contents: read + jobs: - build: + publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - # Setup .npmrc file to publish to npm - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 with: - node-version: '16.x' + node-version: '24' registry-url: 'https://registry.npmjs.org' - run: npm ci - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - run: npm run build --if-present + - run: npm test + - run: npm publish \ No newline at end of file