Skip to content

Commit cef74b5

Browse files
committed
Update publish preparation
1 parent 301966f commit cef74b5

3 files changed

Lines changed: 43 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
12
name: Build
23

34
on:
45
push:
56
pull_request:
67
branches:
78
- main
8-
9+
tags:
10+
- 'v*'
911
permissions:
1012
contents: read
1113
packages: read
@@ -46,3 +48,40 @@ jobs:
4648
with:
4749
name: github-actions-enhanced-vsix
4850
path: github-actions-enhanced-*.vsix
51+
# publish:
52+
# name: 🚀 Publish to VSCode Marketplace
53+
# needs: build
54+
# runs-on: ubuntu-latest
55+
# if: startsWith(github.ref, 'refs/tags/v')
56+
# steps:
57+
# - name: 🤖 Azure Login - Federated Token
58+
# if: github.event_name != 'pull_request'
59+
# shell: pwsh
60+
# run: |
61+
# $token = $env:ACTIONS_ID_TOKEN_REQUEST_TOKEN
62+
# $uri = $env:ACTIONS_ID_TOKEN_REQUEST_URL
63+
# $irmParams = @{
64+
# Uri = $uri
65+
# Authentication = 'Bearer'
66+
# Token = (ConvertTo-SecureString -AsPlainText $token)
67+
# Body = @{audience = 'api://AzureADTokenExchange' }
68+
# }
69+
# $jwtResponse = Invoke-Restmethod @irmParams
70+
# $fedToken = $jwtResponse.value
71+
# if (-not $fedToken) {
72+
# throw "Federated token not found in response: $($jwtResponse | ConvertTo-Json -Depth 10)"
73+
# }
74+
75+
# $azLoginParams = @(
76+
# '--service-principal',
77+
# '-u', '${{ secrets.AZURE_CLIENT_ID }}',
78+
# '-t', '${{ secrets.AZURE_TENANT_ID }}',
79+
# '--federated-token', $fedToken
80+
# )
81+
# & az login @azLoginParams
82+
# - name: ⬇️ Download Build Artifact
83+
# uses: actions/download-artifact@v6
84+
# with:
85+
# name: github-actions-enhanced-vsix
86+
# - name: 🚀 Publish to VSCode Marketplace
87+
# run: npx vsce publish --azure-credential --packagePath github-actions-enhanced-*.vsix

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ This extension is a fork of the official [GitHub Actions Extension](https://gith
55
## Improvements over the official extension
66

77
- Overhauled sync engine based on Tanstack DB and [Conditional Requests](https://docs.github.com/en/rest/using-the-rest-api/best-practices-for-using-the-rest-api?apiVersion=2022-11-28#use-conditional-requests-if-appropriate) to make the UI snappy, responsive, and auto-updating without incurring GitHub API rate limiting
8+
- Run jobs and steps now show durations
89
- Icons updated to use codicons and the testing icon set, making them themable
9-
- Revamped logging
10+
- Revamped logging, much more detailed as to what is going on
1011

11-
See the full change history in [CHANGELOG.md](CHANGELOG.md).
1212

1313
## Why a fork?
1414
I initially maintained a parallel fork and went to a lot of work to make upstream changes independent and very mergeable. After a year of the GitHub team completely ignoring me and other PRs, it is clear the extension is in security maintenance mode, with only package dependency bumps being added.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"build": "pnpm clean && pnpm lint && pnpm format-check && pnpm rd --environment PRODUCTION:true",
3434
"watch": "pnpm rd --watch",
3535
"clean": "git clean -fdX -- ./dist ./out",
36-
"package": "pnpm vsce package --no-dependencies",
36+
"package": "pnpm vsce package --no-dependencies --no-git-tag-version --no-update-package-json",
3737
"vscode:prepublish": "pnpm build",
3838
"test": "node --import tsx --test \"src/**/*.test.ts\"",
3939
"lint": "tsgo --noEmit && oxlint",

0 commit comments

Comments
 (0)