File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -148,4 +148,18 @@ jobs:
148148 with :
149149 subject-name : ghcr.io/${{ github.repository_owner }}/podman-desktop-extension-kubernetes-dashboard
150150 subject-digest : ${{ steps.push-to-ghcr.outputs.digest }}
151- push-to-registry : true
151+ push-to-registry : true
152+
153+ - name : Set api package version
154+ run : |
155+ PACKAGE_VERSION=$(jq -r '.version' packages/api/package.json)
156+ STRIPPED_VERSION=${PACKAGE_VERSION%-next}
157+ SHORT_SHA1=$(git rev-parse --short HEAD)
158+ TAG_PATTERN=${STRIPPED_VERSION}-$(date +'%Y%m%d%H%M')-${SHORT_SHA1}
159+ echo "Using version ${TAG_PATTERN}"
160+ sed -i "s#version\":\ \"\(.*\)\",#version\":\ \"${TAG_PATTERN}\",#g" packages/api/package.json
161+
162+ - name : publish api package
163+ run : pnpm publish
164+ env :
165+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments