Skip to content

Adjust github action and remove dist #2

Adjust github action and remove dist

Adjust github action and remove dist #2

Workflow file for this run

name: "publish package to npm"
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: node
uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}