@bsv/wallet-toolbox 1.7.15 → 1.7.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14,13 +14,15 @@ permissions:
|
|
|
14
14
|
jobs:
|
|
15
15
|
test:
|
|
16
16
|
runs-on: ubuntu-latest
|
|
17
|
+
strategy:
|
|
18
|
+
matrix:
|
|
19
|
+
node-version: [20, 22, 24]
|
|
17
20
|
steps:
|
|
18
21
|
- uses: actions/checkout@v4
|
|
19
22
|
|
|
20
23
|
- uses: actions/setup-node@v4
|
|
21
24
|
with:
|
|
22
|
-
node-version:
|
|
23
|
-
registry-url: 'https://registry.npmjs.org'
|
|
25
|
+
node-version: ${{ matrix.node-version }}
|
|
24
26
|
|
|
25
27
|
- run: npm ci
|
|
26
28
|
- run: npm run build --if-present
|
|
@@ -38,31 +40,106 @@ jobs:
|
|
|
38
40
|
with:
|
|
39
41
|
node-version: '24'
|
|
40
42
|
registry-url: 'https://registry.npmjs.org'
|
|
43
|
+
always-auth: false
|
|
41
44
|
|
|
42
45
|
- run: npm ci
|
|
43
46
|
- run: npm run build --if-present
|
|
44
47
|
|
|
45
|
-
- name:
|
|
46
|
-
|
|
48
|
+
- name: Sync client version with root
|
|
49
|
+
run: |
|
|
50
|
+
ROOT_VERSION=$(node -p "require('./package.json').version")
|
|
51
|
+
cd client
|
|
52
|
+
npm version $ROOT_VERSION --no-git-tag-version --allow-same-version
|
|
53
|
+
cd ..
|
|
54
|
+
|
|
55
|
+
- name: Sync mobile version with root
|
|
56
|
+
run: |
|
|
57
|
+
ROOT_VERSION=$(node -p "require('./package.json').version")
|
|
58
|
+
cd mobile
|
|
59
|
+
npm version $ROOT_VERSION --no-git-tag-version --allow-same-version
|
|
60
|
+
cd ..
|
|
61
|
+
|
|
62
|
+
- name: Check if root version already published
|
|
63
|
+
id: check-root-version
|
|
47
64
|
run: |
|
|
48
65
|
PACKAGE_NAME=$(node -p "require('./package.json').name")
|
|
49
66
|
PACKAGE_VERSION=$(node -p "require('./package.json').version")
|
|
50
67
|
|
|
51
|
-
echo "Package: $PACKAGE_NAME@$PACKAGE_VERSION"
|
|
68
|
+
echo "Root Package: $PACKAGE_NAME@$PACKAGE_VERSION"
|
|
52
69
|
|
|
53
70
|
# Check if this version exists on npm
|
|
54
71
|
if npm view "$PACKAGE_NAME@$PACKAGE_VERSION" version 2>/dev/null; then
|
|
55
|
-
echo "
|
|
56
|
-
echo "
|
|
72
|
+
echo "Root version $PACKAGE_VERSION already published"
|
|
73
|
+
echo "should_publish_root=false" >> $GITHUB_OUTPUT
|
|
57
74
|
else
|
|
58
|
-
echo "
|
|
59
|
-
echo "
|
|
75
|
+
echo "Root version $PACKAGE_VERSION not yet published"
|
|
76
|
+
echo "should_publish_root=true" >> $GITHUB_OUTPUT
|
|
60
77
|
fi
|
|
61
78
|
|
|
62
|
-
- name: Publish to npm
|
|
63
|
-
if: steps.check-version.outputs.
|
|
79
|
+
- name: Publish root to npm
|
|
80
|
+
if: steps.check-root-version.outputs.should_publish_root == 'true'
|
|
64
81
|
run: npm publish
|
|
65
82
|
|
|
66
|
-
- name: Skip publishing
|
|
67
|
-
if: steps.check-version.outputs.
|
|
68
|
-
run: echo "Skipping publish - version already exists on npm"
|
|
83
|
+
- name: Skip publishing root
|
|
84
|
+
if: steps.check-root-version.outputs.should_publish_root == 'false'
|
|
85
|
+
run: echo "Skipping publish root - version already exists on npm"
|
|
86
|
+
|
|
87
|
+
- name: Check if client version already published
|
|
88
|
+
id: check-client-version
|
|
89
|
+
run: |
|
|
90
|
+
cd client
|
|
91
|
+
PACKAGE_NAME=$(node -p "require('./package.json').name")
|
|
92
|
+
PACKAGE_VERSION=$(node -p "require('./package.json').version")
|
|
93
|
+
|
|
94
|
+
echo "Client Package: $PACKAGE_NAME@$PACKAGE_VERSION"
|
|
95
|
+
|
|
96
|
+
# Check if this version exists on npm
|
|
97
|
+
if npm view "$PACKAGE_NAME@$PACKAGE_VERSION" version 2>/dev/null; then
|
|
98
|
+
echo "Client version $PACKAGE_VERSION already published"
|
|
99
|
+
echo "should_publish_client=false" >> $GITHUB_OUTPUT
|
|
100
|
+
else
|
|
101
|
+
echo "Client version $PACKAGE_VERSION not yet published"
|
|
102
|
+
echo "should_publish_client=true" >> $GITHUB_OUTPUT
|
|
103
|
+
fi
|
|
104
|
+
cd ..
|
|
105
|
+
|
|
106
|
+
- name: Publish client to npm
|
|
107
|
+
if: steps.check-client-version.outputs.should_publish_client == 'true'
|
|
108
|
+
run: |
|
|
109
|
+
cd client
|
|
110
|
+
npm publish
|
|
111
|
+
cd ..
|
|
112
|
+
|
|
113
|
+
- name: Skip publishing client
|
|
114
|
+
if: steps.check-client-version.outputs.should_publish_client == 'false'
|
|
115
|
+
run: echo "Skipping publish client - version already exists on npm"
|
|
116
|
+
|
|
117
|
+
- name: Check if mobile version already published
|
|
118
|
+
id: check-mobile-version
|
|
119
|
+
run: |
|
|
120
|
+
cd mobile
|
|
121
|
+
PACKAGE_NAME=$(node -p "require('./package.json').name")
|
|
122
|
+
PACKAGE_VERSION=$(node -p "require('./package.json').version")
|
|
123
|
+
|
|
124
|
+
echo "Mobile Package: $PACKAGE_NAME@$PACKAGE_VERSION"
|
|
125
|
+
|
|
126
|
+
# Check if this version exists on npm
|
|
127
|
+
if npm view "$PACKAGE_NAME@$PACKAGE_VERSION" version 2>/dev/null; then
|
|
128
|
+
echo "Mobile version $PACKAGE_VERSION already published"
|
|
129
|
+
echo "should_publish_mobile=false" >> $GITHUB_OUTPUT
|
|
130
|
+
else
|
|
131
|
+
echo "Mobile version $PACKAGE_VERSION not yet published"
|
|
132
|
+
echo "should_publish_mobile=true" >> $GITHUB_OUTPUT
|
|
133
|
+
fi
|
|
134
|
+
cd ..
|
|
135
|
+
|
|
136
|
+
- name: Publish mobile to npm
|
|
137
|
+
if: steps.check-mobile-version.outputs.should_publish_mobile == 'true'
|
|
138
|
+
run: |
|
|
139
|
+
cd mobile
|
|
140
|
+
npm publish
|
|
141
|
+
cd ..
|
|
142
|
+
|
|
143
|
+
- name: Skip publishing mobile
|
|
144
|
+
if: steps.check-mobile-version.outputs.should_publish_mobile == 'false'
|
|
145
|
+
run: echo "Skipping publish mobile - version already exists on npm"
|
package/mobile/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bsv/wallet-toolbox-mobile",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.16",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@bsv/wallet-toolbox-mobile",
|
|
9
|
-
"version": "1.7.
|
|
9
|
+
"version": "1.7.16",
|
|
10
10
|
"license": "SEE LICENSE IN license.md",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@bsv/sdk": "^1.9.24"
|
package/mobile/package.json
CHANGED