-
-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (31 loc) · 988 Bytes
/
npm.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 }}