File tree 3 files changed +16
-1
lines changed
3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 14
14
steps :
15
15
- name : Check out the repo
16
16
uses : actions/checkout@v4
17
+ - name : Set package version
18
+ run : ./scripts/set-package-version.sh
17
19
- name : Set up QEMU
18
20
uses : docker/setup-qemu-action@v3
19
21
- name : Set up Docker Buildx
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " polymesh-rest-api" ,
3
- "version" : " 7 .0.0" ,
3
+ "version" : " 0 .0.0" ,
4
4
"description" : " Provides a REST like interface for interacting with the Polymesh blockchain" ,
5
5
"author" : " Polymesh Association" ,
6
6
"private" : true ,
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Get the latest tag
4
+ TAG_NAME=$( git describe --tags --abbrev=0)
5
+
6
+ # Strip the 'v' prefix if it exists
7
+ VERSION=${TAG_NAME# v}
8
+
9
+
10
+ # Update the version field in package.json
11
+ jq --arg version " $VERSION " ' .version = $version' package.json > tmp.json && mv tmp.json package.json
12
+
13
+ echo " Updated package.json version to $VERSION "
You can’t perform that action at this time.
0 commit comments