-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b4be010
commit ccc8895
Showing
1 changed file
with
5 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,12 +105,12 @@ 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 }} | ||
new_version="${{ steps.tag.outputs.new_version }}" | ||
file="package.json" | ||
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" | ||
#sed -i "s/\"version\": \".*\"/\"version\": \"$new_version\"/" "$file" | ||
working-directory: . | ||
|
||
- name: Build OpenCV | ||
|
@@ -154,8 +154,7 @@ jobs: | |
commit_user_name: GitHub | ||
commit_user_email: [email protected] | ||
commit_author: GitHub <[email protected]> | ||
tagging_message: 'v${{ steps.tag.outputs.new_version }}' | ||
push_options: '--force --tags --follow-tags' | ||
push_options: '--force' | ||
|
||
- id: publish-slight-capture | ||
uses: JS-DevTools/npm-publish@v1 | ||
|