build: adopted release-it

This commit is contained in:
Andrea Lamparelli 2023-01-05 14:04:27 +01:00
parent 0dd4700783
commit 34fc5b7557
6 changed files with 5215 additions and 36 deletions

View file

@ -1,14 +0,0 @@
on:
push:
branches:
- main
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
with:
release-type: node
package-name: "@lampajr/bper"

View file

@ -1,19 +0,0 @@
# This workflow create a new tag and then publish it to NPM.
name: "Publish Package"
on: workflow_dispatch
jobs:
publish:
name: "Publish"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm install && npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}