Skip to content

Publish Package to npm #2

Publish Package to npm

Publish Package to npm #2

Workflow file for this run

name: Publish Package to npm
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 'Automated Version Bump'
uses: 'florian-h05/gh-action-advanced-bump-version@main'
id: version-bump
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
major-wording: 'major,Major,breaking,Breaking'
minor-wording: 'minor,Minor,add,Add,adds,Adds,new,New'
patch-wording: 'fix,Fix,fixes,Fixes,patch,Patch'
rc-wording: 'rc,pre'
skip-if-no-commits: 'true'
tag-prefix: 'v'
commit-message: 'CI: bumps version to {{version}} [skip ci]'
bump-policy: 'last-commit'
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}