Skip to content

Commit f082405

Browse files
fix: pipeline (#34)
Signed-off-by: Mario Francia <mario@io.builders>
1 parent 1e2b35d commit f082405

File tree

7 files changed

+2458
-5460
lines changed

7 files changed

+2458
-5460
lines changed

.github/workflows/all.publish.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
- published
66
jobs:
77
publish:
8-
name: publishing packages
8+
name: Publish NPM Packages
99
runs-on: ubuntu-latest
1010

1111
permissions:
@@ -38,9 +38,6 @@ jobs:
3838
env:
3939
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4040

41-
- name: Wait for contracts package availability
42-
run: sleep 10
43-
4441
- name: Install sdk dependencies
4542
run: npm run install:sdk
4643

changeProyectsReferencesToRepo.sh

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,23 @@ version=$(node -p -e "require('./package.json').version")
55

66
if [[ "$OSTYPE" == "darwin"* ]]; then
77
# macOS
8-
find . -path ./node_modules -prune -o -name "package.json" -type f | grep -v node_modules | grep -v example | xargs sed -i '' "s/\"@hashgraph\/asset-tokenization-sdk\": \".*\"/\"@hashgraph\/asset-tokenization-sdk\": \"$version\"/g"
9-
find . -path ./node_modules -prune -o -name "package.json" -type f | grep -v node_modules | grep -v example | xargs sed -i '' "s/\"@hashgraph\/asset-tokenization-contracts\": \".*\"/\"@hashgraph\/asset-tokenization-contracts\": \"$version\"/g"
8+
find . -path ./node_modules -prune -o -name "package.json" -type f | grep -v node_modules | grep -v example | while read file; do
9+
echo "Updating $file with version $version"
10+
sed -i '' "s/\"@hashgraph\/asset-tokenization-sdk\": \".*\"/\"@hashgraph\/asset-tokenization-sdk\": \"$version\"/g" "$file"
11+
sed -i '' "s/\"@hashgraph\/asset-tokenization-contracts\": \".*\"/\"@hashgraph\/asset-tokenization-contracts\": \"$version\"/g" "$file"
12+
done
1013
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
1114
# Linux
12-
find . -path ./node_modules -prune -o -name "package.json" -type f | grep -v node_modules | grep -v example | xargs sed -i "s/\"@hashgraph\/asset-tokenization-sdk\": \".*\"/\"@hashgraph\/asset-tokenization-sdk\": \"$version\"/g"
13-
find . -path ./node_modules -prune -o -name "package.json" -type f | grep -v node_modules | grep -v example | xargs sed -i "s/\"@hashgraph\/asset-tokenization-contracts\": \".*\"/\"@hashgraph\/asset-tokenization-contracts\": \"$version\"/g"
15+
find . -path ./node_modules -prune -o -name "package.json" -type f | grep -v node_modules | grep -v example | while read file; do
16+
echo "Updating $file with version $version"
17+
sed -i "s/\"@hashgraph\/asset-tokenization-sdk\": \".*\"/\"@hashgraph\/asset-tokenization-sdk\": \"$version\"/g" "$file"
18+
sed -i "s/\"@hashgraph\/asset-tokenization-contracts\": \".*\"/\"@hashgraph\/asset-tokenization-contracts\": \"$version\"/g" "$file"
19+
done
1420
elif [[ "$OSTYPE" == "msys" ]]; then
1521
# Windows
16-
find . -path ./node_modules -prune -o -name "package.json" -type f | grep -v node_modules | grep -v example | xargs sed -i "s/\"@hashgraph\/asset-tokenization-sdk\": \".*\"/\"@hashgraph\/asset-tokenization-sdk\": \"$version\"/g"
17-
find . -path ./node_modules -prune -o -name "package.json" -type f | grep -v node_modules | grep -v example | xargs sed -i "s/\"@hashgraph\/asset-tokenization-contracts\": \".*\"/\"@hashgraph\/asset-tokenization-contracts\": \"$version\"/g"
18-
fi
22+
find . -path ./node_modules -prune -o -name "package.json" -type f | grep -v node_modules | grep -v example | while read file; do
23+
echo "Updating $file with version $version"
24+
sed -i "s/\"@hashgraph\/asset-tokenization-sdk\": \".*\"/\"@hashgraph\/asset-tokenization-sdk\": \"$version\"/g" "$file"
25+
sed -i "s/\"@hashgraph\/asset-tokenization-contracts\": \".*\"/\"@hashgraph\/asset-tokenization-contracts\": \"$version\"/g" "$file"
26+
done
27+
fi

contracts/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

contracts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hashgraph/asset-tokenization-contracts",
3-
"version": "1.3.1",
3+
"version": "1.3.2",
44
"main": "./build/typechain-types/index.js",
55
"module": "./build/typechain-types/index.js",
66
"files": [

0 commit comments

Comments
 (0)