Skip to content

Merge pull request #11 from openSVM/copilot/fix-a4a516c5-31c3-4e6f-88… #3

Merge pull request #11 from openSVM/copilot/fix-a4a516c5-31c3-4e6f-88…

Merge pull request #11 from openSVM/copilot/fix-a4a516c5-31c3-4e6f-88… #3

Workflow file for this run

name: Publish to NPM
on:
push:
tags:
- 'v*'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Build project
run: npm run build
- name: Run tests and linting
run: |
npm test -- --passWithNoTests
npm run lint
- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}