Skip to content

Publish package to npmjs #10

Publish package to npmjs

Publish package to npmjs #10

Workflow file for this run

name: Publish Package to npmjs
on:
workflow_run:
workflows:
- Node CI
branches:
- main
types:
- completed
release:
types: [created]
jobs:
bump:
runs-on: ubuntu-latest
steps:
- name: Bumping version
uses: jpb06/bump-package@latest
with:
major-keywords: BREAKING CHANGE
minor-keywords: feat,minor
patch-keywords: Bump,fix,chore
should-default-to-patch: true
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '>=14.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}