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 b4be010 commit ccc8895
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ccc8895

Please sign in to comment.