Skip to content

Commit

Permalink
Fetch version from published extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieMagee committed Oct 24, 2024
1 parent eddc3ce commit 2a7e653
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ jobs:
#!/usr/bin/env bash
set -euo pipefail
current_version=$(jq -r '.version' vss-extension.json)
current_version=$(\
npm exec tfx extension show --publisher JamieMagee --extension-id scorecard --trace-level none | \
jq -r '.versions[0].version' \
)
version_parts=(${current_version//./ })
case "${{ github.event.inputs.bump }}" in
major)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"build": "node esbuild.mjs",
"lint": "biome check --write ./src",
"format": "biome format --write ./src",
"package": "tfx extension create --rev-version",
"package": "tfx extension create",
"publish": "tfx extension publish"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion src/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"version": {
"Major": 0,
"Minor": 0,
"Patch": 2
"Patch": 1
},
"instanceNameFormat": "Run OSSF Scorecard",
"inputs": [
Expand Down
2 changes: 1 addition & 1 deletion vss-extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"manifestVersion": 1,
"id": "scorecard",
"name": "OSSF Scorecard",
"version": "0.0.13",
"version": "0.0.0",
"public": false,
"publisher": "JamieMagee",
"targets": [
Expand Down

0 comments on commit 2a7e653

Please sign in to comment.