Skip to content
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 VSCode extension #107

Open
zeroedin opened this issue May 24, 2023 · 0 comments
Open

Publish VSCode extension #107

zeroedin opened this issue May 24, 2023 · 0 comments

Comments

@zeroedin
Copy link
Contributor

zeroedin commented May 24, 2023

We should publish the VSCode extension to the VSCode store to enable ease of upgrading.

Documentation to publish extension
https://code.visualstudio.com/api/working-with-extensions/publishing-extension#create-a-publisher

vsce publish

This command will ask for the personal access token, if you haven't already provided it with the vsce login command above.

In order to create the login you will need a publisher login which will require us to verify a domain.

https://code.visualstudio.com/api/working-with-extensions/publishing-extension#verify-a-publisher

Eligible domains

Eligible domains meet the following criteria:

  • Cannot be a subdomain ({subdomain}.github.io, {subdomain}.contoso.com, or similar).
  • You must be able to manage the DNS configuration settings and add a TXT record.
  • Your domain must use HTTPS protocol.
  • Your domain must be able to serve an HTTP 200 status response to a HEAD request.

After this is done would could publish on each release like this:

possible release.yml changes to sync plugin version with tokens repo version

      - name: Publish VSCode
        if: ${{ steps.changesets.outputs.published == 'true' }}
        run: |
          tag=$(echo '${{ steps.changesets.outputs.publishedPackages }}' | jq -c '.[0].version')
          echo "$tag"        
          cd editor/vscode
          npx vsce login ${{ secrets.MSFT_PUBLISHER_NAME }}
          npx vsce publish $tag
        env:
          VSCE_PAT: ${{ secrets.VSCE_PAT }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant