diff --git a/.github/workflows/debugger-build.yml b/.github/workflows/debugger-build.yml new file mode 100644 index 00000000..1369f661 --- /dev/null +++ b/.github/workflows/debugger-build.yml @@ -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 diff --git a/README.md b/README.md index 8b257498..4a89a585 100644 --- a/README.md +++ b/README.md @@ -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 ` or via the Extensions view → `⋯` menu → **Install from VSIX…**. + The GitHub Actions extension lets you manage your workflows, view the workflow run history, and helps with authoring workflows. ![](./media/header.png)