feat: pipeline improved to tag and relase on github the new library version

This commit is contained in:
Junior García 2021-08-15 16:10:14 -03:00
parent 1ae82afbf1
commit a3c0170a97
2 changed files with 24 additions and 1 deletions

View File

@ -92,11 +92,17 @@ jobs:
with:
token: ${{ secrets.NPM_TOKEN }}
package: './packages/nextui/package.json'
- name: Show published version
if: steps.publish.outputs.type != 'none'
run: |
echo "Version changed: ${{ steps.publish.outputs.old-version }} => ${{ steps.publish.outputs.version }}"
- name: Tag new version
if: steps.publish.outputs.type != 'none'
uses: Klemensas/action-autotag@stable
with:
GITHUB_TOKEN: ${{ github.token }}
tag_prefix: "v"
package_root: "./packages/nextui"
deploy:
needs: [publish]

17
.github/workflows/release.yaml vendored Normal file
View File

@ -0,0 +1,17 @@
name: Tagged Release
on:
push:
tags:
- "v*"
jobs:
tagged-release:
name: Tagged Release
runs-on: ubuntu-18.04
steps:
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ github.token }}"
prerelease: false