Skip to content

fix: empty npm package, update readme, types error, build scripts #6

fix: empty npm package, update readme, types error, build scripts

fix: empty npm package, update readme, types error, build scripts #6

Workflow file for this run

name: Publish NPM Package
on:
push:
branches:
- main
release:
types: [created]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org/'
- run: npm install
- run: npm test
publish:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org/'
- run: npm install
- run: npm test
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}