-
Notifications
You must be signed in to change notification settings - Fork 13
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
Publish on OpenVSX #648
Publish on OpenVSX #648
Conversation
Looking into this failure:
|
068ced7
to
590a2fd
Compare
^ I solved the above by removing |
@@ -27,3 +27,8 @@ jobs: | |||
run: node_modules/.bin/vsce publish --packagePath vscode-shopify-ruby.vsix | |||
env: | |||
VSCE_PAT: ${{ secrets.VSCE_PAT }} | |||
|
|||
- name: Publish extension on OpenVSX |
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.
Copied from ruby-lsp
.
dev.yml
Outdated
@@ -5,7 +5,7 @@ type: nodejs | |||
up: | |||
- node: | |||
yarn: true | |||
version: 18.15.0 | |||
version: 20.9.0 |
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.
Bumped while troubleshooting. Might not have been necessary, but it now matches Ruby LSP.
The resolutions were there to prevent installing a vulnerable version of |
61dca7b
to
ef414e3
Compare
(Confirmed with Vini that the |
I've added a resolution for
|
|
9cf02e7
to
bd6751c
Compare
run: | | ||
yarn run package | ||
node_modules/.bin/ovsx publish vscode-shopify-ruby.vsix -p ${{ secrets.OPENVSX_TOKEN }} --yarn |
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.
Since we are only using ovsx
to publish our extension, would it make sense to use yarn dlx here instead of adding a dependency?
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.
I'm not familiar with that command, but ovsx
is only a development dependency. What's the advantage of using dlx
?
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.
I was checking the ovsx
documentation and noticed they use npx
in their examples. dlx
is the Yarn equivalent of npx
. It allows us to run ovsx
directly without installing it as a permanent dependency.
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.
Ah, I see. I think it's better to have the explicit dependency to ensure we're running the same versions of ovsx
and its dependencies in all environments. Otherwise it could be more difficult when troubleshooting.
Closes #646