Update NPMjs publish configuration

This commit is contained in:
dennis committed 2026-02-08 16:54:57 +01:00
1 parent 7f97b81f77
commit b31fbe03fa
1 file changed
+18 -11
+18 -11
View File
@@ -1,18 +1,25 @@
name: Publish Package to npmjs name: Publish Package
on: on:
release: push:
types: [created] tags:
- 'v*'
permissions:
id-token: write # Required for OIDC
contents: read
jobs: jobs:
build: publish:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3 - uses: actions/setup-node@v4
with: with:
node-version: '16.x' node-version: '24'
registry-url: 'https://registry.npmjs.org' registry-url: 'https://registry.npmjs.org'
- run: npm ci - run: npm ci
- run: npm publish - run: npm run build --if-present
env: - run: npm test
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - run: npm publish