-
Notifications
You must be signed in to change notification settings - Fork 175
Add debugger build workflow and README install instructions #581
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| name: Build Debugger Extension | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - debugger | ||
|
|
||
| permissions: | ||
| contents: read | ||
| packages: read | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 16.x | ||
| cache: "npm" | ||
| registry-url: "https://npm.pkg.github.com" | ||
|
|
||
| - run: npm --no-git-tag-version version 0.0.${{ github.run_number }} | ||
|
|
||
| - run: npm ci | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Create a package.json without scoped name | ||
| run: | | ||
| cp package.json package.json.real | ||
| sed --regexp-extended '/"name"\s*:/ s#@[a-zA-Z\\-]+/##' package.json.real > package.json | ||
|
|
||
| - run: npm run package | ||
|
|
||
| - uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: vscode-github-actions-debugger | ||
| path: ./vscode-github-actions-0.0.${{ github.run_number }}.vsix | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,5 +1,7 @@ | ||||||
| # GitHub Actions for VS Code | ||||||
|
|
||||||
| > **🐛 Actions Job Debugger (Preview):** To try the latest debugger build, download the `.vsix` artifact from the most recent [Build Debugger Extension](https://github.com/github/vscode-github-actions/actions/workflows/debugger-build.yml) workflow run. On the workflow run page, scroll to **Artifacts** and download **vscode-github-actions-debugger**. Then install it in VS Code by running `code --install-extension <path-to-downloaded.vsix>` or via the Extensions view → `⋯` menu → **Install from VSIX…**. | ||||||
|
||||||
| > **🐛 Actions Job Debugger (Preview):** To try the latest debugger build, download the `.vsix` artifact from the most recent [Build Debugger Extension](https://github.com/github/vscode-github-actions/actions/workflows/debugger-build.yml) workflow run. On the workflow run page, scroll to **Artifacts** and download **vscode-github-actions-debugger**. Then install it in VS Code by running `code --install-extension <path-to-downloaded.vsix>` or via the Extensions view → `⋯` menu → **Install from VSIX…**. | |
| > **🐛 Actions Job Debugger (Preview):** To try the latest debugger build, go to the most recent [Build Debugger Extension](https://github.com/github/vscode-github-actions/actions/workflows/debugger-build.yml) workflow run. On the workflow run page, scroll to **Artifacts** and download **vscode-github-actions-debugger**. GitHub Actions artifacts download as a `.zip` file, so extract the contained `.vsix` file first, then install it in VS Code by running `code --install-extension <path-to-extracted.vsix>` or via the Extensions view → `⋯` menu → **Install from VSIX…**. |
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 step leaves a temporary
package.json.realin the workspace. Sincevsce packageincludes files unless excluded by.vscodeignore/files, the generated VSIX will likely containpackage.json.realas an extra file. Consider deleting the temp file before packaging or writing it to a temp location, or explicitly excluding it in.vscodeignore.