Skip to content

publish package

publish package #17

Workflow file for this run

name: publish package
on:
workflow_dispatch:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run test
- run: npm run build
- run: npm publish
if: "contains(github.event.head_commit.message, 'release:')"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}