Skip to content

Commit

Permalink
Update build_release.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Lorenzo Mangani <[email protected]>
  • Loading branch information
lmangani authored Nov 5, 2023
1 parent eac27c6 commit 3f03427
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'CI+CD'

on:
release:
types: [created]
types: [published]
workflow_dispatch:
inputs:
TAG_NAME:
Expand All @@ -15,16 +15,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: 'Checkout source code'
uses: 'actions/checkout@v3'
- uses: 'actions/checkout@v3'
with:
ref: ${{ github.ref }}
- uses: MYXOMOPX/[email protected]
id: setcmnver
with:
target: ./package.json
action: "set_version"
argument: "${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }}"
- name: Update Package to Release version
uses: pocket-apps/action-update-version@v1
with:
files: 'package.json'
version-regexp: '\d+.\d+.\d+'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Check NPM secret presence
id: checksecrets
shell: bash
Expand Down

0 comments on commit 3f03427

Please sign in to comment.