mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Merge branch 'main' into feat/pdm-support
This commit is contained in:
commit
42102eb067
2 changed files with 9 additions and 3 deletions
10
.github/workflows/build-and-release.yml
vendored
10
.github/workflows/build-and-release.yml
vendored
|
|
@ -101,7 +101,6 @@ jobs:
|
|||
|
||||
publish-npm:
|
||||
name: Publish to npm
|
||||
if: github.event_name == 'release'
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
|
@ -133,8 +132,15 @@ jobs:
|
|||
cp README.md packages/safe-chain/
|
||||
cp LICENSE packages/safe-chain/
|
||||
cp -r docs packages/safe-chain/
|
||||
cp npm-shrinkwrap.json packages/safe-chain/
|
||||
|
||||
- name: Publish to npm
|
||||
run: |
|
||||
echo "Publishing version ${{ github.event.release.tag_name }} to NPM"
|
||||
VERSION="${{ github.event.release.tag_name }}"
|
||||
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
|
||||
|
|
|
|||
0
package-lock.json → npm-shrinkwrap.json
generated
0
package-lock.json → npm-shrinkwrap.json
generated
Loading…
Add table
Add a link
Reference in a new issue