Skip to content

Merge pull request #1 from liblaber/generate #1

Merge pull request #1 from liblaber/generate

Merge pull request #1 from liblaber/generate #1

Workflow file for this run

name: Publish to npm
on:
push:
tags:
- 'v*.*.*' # This triggers the action on version tags
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm install
- name: Build package
run: npm run build
- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish