Skip to content

Commit b3950b9

Browse files
committed
[UPDATE] the flow to use the github output mechanism instead of the github env
1 parent 9bc5731 commit b3950b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/publish_vsix.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ jobs:
5858
fi
5959
6060
# Export validated tag for use by later steps in this job
61+
echo "TAG_VERSION=$tag" >> $GITHUB_OUTPUT
6162
echo "TAG_VERSION=$tag" >> $GITHUB_ENV
6263
echo "Using TAG_VERSION=$tag"
6364
@@ -72,7 +73,7 @@ jobs:
7273
process.exit(1);
7374
}
7475
const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8'));
75-
const tagVersion = ${{steps.set-package-version.outputs.TAG_VERSION}};
76+
const tagVersion = "${{steps.set-package-version.outputs.TAG_VERSION}}";
7677
pkg.version = tagVersion;
7778
fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + '\n');
7879
console.log('Updated package.json.version ->', tagVersion);

0 commit comments

Comments
 (0)