Skip to content

Merge pull request #19 from stefanak-michal/15-cd #2

Merge pull request #19 from stefanak-michal/15-cd

Merge pull request #19 from stefanak-michal/15-cd #2

Workflow file for this run

name: Publish npm
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
- run: npm ci
- name: Update package version
run: npm version ${{ github.ref_name }} --allow-same-version
- name: Build
run: npm run build
- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish