Skip to content

Commit

Permalink
BUILD-7202 Change version pushed to npmjs
Browse files Browse the repository at this point in the history
  • Loading branch information
SamirM-BE committed Jan 6, 2025
1 parent dae0992 commit 787be65
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/npmjs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
id: get_version
run: |
IFS='.-' read -r major minor patch build <<< "${{ github.event.release.tag_name }}"
version="${major}.${minor}.${patch}-${build}"
version="${major}.${minor}.${patch}"
echo "build=${build}" >> $GITHUB_OUTPUT
echo "patch=${patch}" >> $GITHUB_OUTPUT
echo "minor=${minor}" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -99,6 +99,10 @@ jobs:
tar -xzf "$file" -C package --strip-components=1
echo "Package extracted to ./package"
- name: Update package version
working-directory: ${{ steps.local_repo.outputs.dir }}/package
run: npm version --no-git-tag-version ${{ steps.get_version.outputs.version }}

- name: Checkout developer repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
Expand Down

0 comments on commit 787be65

Please sign in to comment.