Added different pipeline for different version type

This commit is contained in:
Lorenzo Iovino 2024-01-09 08:05:12 +01:00
parent ad73dde0d1
commit b6d12f3597
4 changed files with 52 additions and 6 deletions

23
.github/workflows/npmpub-patch.yml vendored Normal file
View file

@ -0,0 +1,23 @@
name: Publish to NPM as patch release
on:
push:
branches: [release-patch]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest]
node-version: [20.x]
steps:
- uses: actions/checkout@v2
- run: npm install
- run: npm run patch
- run: cp README.md ./src/lib/dist/README.md
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: './src/lib/dist/package.json'