Publish workflow added

This commit is contained in:
Olli Paloviita
2026-04-09 15:01:35 +03:00
parent 8ef983d480
commit 7cf2d2e57f
+31 -1
View File
@@ -6,7 +6,37 @@ on:
- 'v*'
jobs:
publish:
publish-npm:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: npm
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm run test:run
- name: Build
run: npm run build
- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
publish-image:
permissions:
contents: read
packages: write