Skip to content

Commit

Permalink
test (release)
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-chervet committed Sep 8, 2023
1 parent 73dad66 commit b4be010
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,13 @@ jobs:
- name: pnpm version ${{ steps.tag.outputs.new_version }}
if: (github.ref == 'refs/heads/main' && steps.which_tag.outputs.tag == 'release') || steps.which_tag.outputs.tag == 'alpha' || steps.which_tag.outputs.tag == 'beta'
run: pnpm version ${{ steps.tag.outputs.new_version }}
run: |
# pnpm version ${{ steps.tag.outputs.new_version }}
new_version="${{ steps.tag.outputs.new_version }}"
file="package.json"
# Utilise sed pour mettre à jour la version dans package.json
sed -i "s/\"version\": \".*\"/\"version\": \"$new_version\"/" "$file"
working-directory: .

- name: Build OpenCV
Expand Down

0 comments on commit b4be010

Please sign in to comment.