Skip to content

Merge pull request #342 from hoijnet/infra/fix-build-process-and-type… #51

Merge pull request #342 from hoijnet/infra/fix-build-process-and-type…

Merge pull request #342 from hoijnet/infra/fix-build-process-and-type… #51

Workflow file for this run

name: Build and release on npm
on:
push:
tags:
- v*
jobs:
setup-build-publish-deploy:
name: Setup, Build, Publish, and Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm run build
- run: npm run generate-types
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}