Skip to content

Commit 9bc5731

Browse files
committed
[UPDATE] the publish_vsix flow to attempt to correctly update the package version
1 parent 8db9b4e commit 9bc5731

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/publish_vsix.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ jobs:
6161
echo "TAG_VERSION=$tag" >> $GITHUB_ENV
6262
echo "Using TAG_VERSION=$tag"
6363
64+
- name: Applying the determined tag to the file
65+
run: |
6466
# Update package.json.version
6567
node <<'EOF'
6668
const fs = require('fs');
@@ -70,7 +72,7 @@ jobs:
7072
process.exit(1);
7173
}
7274
const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8'));
73-
const tagVersion = process.env.TAG_VERSION;
75+
const tagVersion = ${{steps.set-package-version.outputs.TAG_VERSION}};
7476
pkg.version = tagVersion;
7577
fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + '\n');
7678
console.log('Updated package.json.version ->', tagVersion);

0 commit comments

Comments
 (0)