fix: separate release to own action and add rule pattern for tag

This commit is contained in:
Brian Pooe 2023-06-16 14:28:21 +02:00
parent 2c4fae8d8b
commit a147d7c243
2 changed files with 15 additions and 4 deletions

View file

@ -31,7 +31,3 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npx nx run-many --target release --all
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')

15
.github/workflows/release.yml vendored Normal file
View file

@ -0,0 +1,15 @@
name: Release
on:
push:
tags:
- "ns-paystack-v*.*.*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Release
uses: softprops/action-gh-release@v1