File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -224,9 +224,11 @@ jobs:
224
224
run : make -C components build-ts
225
225
# replace package.json stub version number with version from tag
226
226
- name : ' set version number'
227
+ env :
228
+ REF : ${{ github.ref }}
227
229
run : |
228
230
npm install -g json
229
- VERSION_STRING=$(echo ${{ github.ref }} | sed 's/refs\/tags\/components@//')
231
+ VERSION_STRING=$(echo "$REF" | sed 's/refs\/tags\/components@//')
230
232
json -I -f ./components/package.json -e "this.version=\"$VERSION_STRING\""
231
233
json -I -f ./components/package.json -e "this.dependencies['@opentrons/shared-data']=\"$VERSION_STRING\""
232
234
json -I -f ./components/package.json -e "delete this.dependencies['@opentrons/step-generation']"
Original file line number Diff line number Diff line change @@ -274,9 +274,11 @@ jobs:
274
274
make -C shared-data lib-js
275
275
# replace package.json stub version number with version from tag
276
276
- name : ' set version number'
277
+ env :
278
+ REF : ${{ github.ref }}
277
279
run : |
278
280
npm install -g json
279
- VERSION_STRING=$(echo ${{ github.ref }} | sed -E 's/refs\/tags\/(components|shared-data)@//')
281
+ VERSION_STRING=$(echo "$REF" | sed -E 's/refs\/tags\/(components|shared-data)@//')
280
282
json -I -f ./shared-data/package.json -e "this.version=\"$VERSION_STRING\""
281
283
cd ./shared-data
282
284
- uses : ' actions/setup-node@v4'
You can’t perform that action at this time.
0 commit comments