mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Fix pre-release publishing
This commit is contained in:
parent
ae63d42ae9
commit
a5541df5ec
1 changed files with 8 additions and 2 deletions
10
.github/workflows/build-and-release.yml
vendored
10
.github/workflows/build-and-release.yml
vendored
|
|
@ -137,5 +137,11 @@ jobs:
|
||||||
|
|
||||||
- name: Publish to npm
|
- name: Publish to npm
|
||||||
run: |
|
run: |
|
||||||
echo "Publishing version ${{ github.event.release.tag_name }} to NPM"
|
VERSION="${{ github.event.release.tag_name }}"
|
||||||
npm publish --workspace=packages/safe-chain --access public --provenance
|
echo "Publishing version $VERSION to NPM"
|
||||||
|
if [[ "$VERSION" == *"-"* ]]; then
|
||||||
|
PRERELEASE_TAG=$(echo "$VERSION" | sed 's/.*-\([^-]*\)$/\1/')
|
||||||
|
npm publish --workspace=packages/safe-chain --access public --provenance --tag "$PRERELEASE_TAG"
|
||||||
|
else
|
||||||
|
npm publish --workspace=packages/safe-chain --access public --provenance
|
||||||
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue