Skip to content

Commit

Permalink
fix: update release
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-Shen committed Feb 5, 2024
1 parent b982adf commit 9f5cd55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ jobs:
- name: Set test pip url
if: ${{ github.ref_name == 'alpha' }}
run: |
echo "PYPI_URL=https://test.pypi.org/project/labelu/#files" >> $GITHUB_ENV
echo "PYPI_URL=https://test.pypi.org/project/labelu/${{ env.NEXT_VERSION }}" >> $GITHUB_ENV
- name: Set release pip url
if: ${{ github.ref_name == 'main' }}
run: |
echo "PYPI_URL=https://pypi.org/project/labelu/#files" >> $GITHUB_ENV
echo "PYPI_URL=https://pypi.org/project/labelu/${{ env.NEXT_VERSION }}" >> $GITHUB_ENV
- name: Show pypi url
run: |
Expand Down
2 changes: 1 addition & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@semantic-release/exec",
{
"verifyReleaseCmd": "echo \"NEXT_VERSION=${nextRelease.version}\" >> $GITHUB_ENV",
"successCmd": "echo \"RELEASE_NOTES=<<EOF ${nextRelease.notes} EOF\" >> $GITHUB_ENV"
"successCmd": "echo \"RELEASE_NOTES=$(echo \"${nextRelease.notes}\" | sed ':a;N;$!ba;s/\n/\\n/g')\" >> $GITHUB_ENV"
}
]
]
Expand Down

0 comments on commit 9f5cd55

Please sign in to comment.