-
Notifications
You must be signed in to change notification settings - Fork 11
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
@W-16971261 Create publishing workflow #134
Conversation
Hi @clayparksfdc this is showing the workflow file as empty? |
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.
Hi @clayparksfdc, just a couple tweaks and then some suggestions around adding a trigger for pull_request
. I'm happy to pair up and run through my thoughts around that.
workflows/publishVSCode.yml
Outdated
@@ -0,0 +1,47 @@ | |||
name: Publish VSCode Extension |
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.
This file should live in .github/workflows/
workflows/publishVSCode.yml
Outdated
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.nvmrc' |
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.
it doesn't look like we have .nvmrc
in CVS, so let's specify a version
node-version-file: '.nvmrc' | |
node-version: 'latest' |
workflows/publishVSCode.yml
Outdated
release: | ||
types: [created] |
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.
release: | |
types: [created] | |
release: | |
types: [released] | |
pull_request: | |
branches: [ '**' ] |
the created
event type seems a little loose, whereas released
will only trigger when the release is for real, not draft or prerelease.
I'm suggesting the pull_request
event too in an attempt to create a dry-run/validation for creation of the VSIX file, and we would just add to the conditional in the Publish Extension
step to skip is the job is run in a PR.
workflows/publishVSCode.yml
Outdated
fi | ||
|
||
- name: Publish Extension | ||
if: success() && steps.package.outputs.VSIX_FILE |
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.
if: success() && steps.package.outputs.VSIX_FILE | |
if: success() && steps.package.outputs.VSIX_FILE && github.event_name == 'release' |
This suggestion is in conjunction with my suggestion of a pull_request
trigger
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.
Good stuff, thanks @clayparksfdc ! LGTM!
@W-16971261 Create a publishing workflow that publishes based on a new release being created. This utilizes the shared IDX secrets shared with this repository.