-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GHA to publish VSIX package #34
Conversation
At a high level, this manual workflow goes like this:
|
throw new Error(`'${tagNameValue}' is not a valid version string.`); | ||
} | ||
|
||
// Put the 'v' back on, as our release tags are formatted as 'v'x.y.z. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice comments!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Changed naming, PAT access to look more like salesforcedx-vscode's. Cf. https://github.com/forcedotcom/salesforcedx-vscode/blob/develop/.github/workflows/publishVSCode.yml
env: | ||
VSCE_PERSONAL_ACCESS_TOKEN: ${{ secrets.VSCE_PERSONAL_ACCESS_TOKEN }} | ||
run: | | ||
npx vsce publish -p ${{ env.VSCE_PERSONAL_ACCESS_TOKEN }} --packagePath ${{ steps.get_package_name.outputs.result }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
heh... a lot of this GHA flow is new to me...so LGTM!
I haven't been able to test the final (publishing) step, for obvious reasons. But I've tested the rest, by substituting the final step with a step that unzips the downloaded package and lists its contents, ensuring that we are in fact downloading a valid package from our release.