Skip to content

Commit 8b07e6c

Browse files
authored
Fix publishing flow
joelspadin-garmin/vscode-private-extension-manager#16 (comment) based on the above issue, this should let us publish `@github/vscode-github-actions` which is our desired flow
1 parent 98e93f9 commit 8b07e6c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,22 @@ jobs:
8080
- run: npm ci
8181
env:
8282
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
83-
83+
84+
- name: create a package.json that actions/upload will like
85+
run: |
86+
cp package.json package.json.real
87+
sed --regexp-extended '/"name"\s*:/ s#@[a-zA-Z\\-]+/##' package.json.real > package.json
88+
8489
- run: npm run package
8590

8691
- uses: actions/upload-artifact@v3
8792
with:
8893
name: vscode-github-actions-${{ env.EXT_VERSION }}.vsix
8994
path: ./vscode-github-actions-${{ env.EXT_VERSION }}.vsix
9095

96+
- name: restore old package.json
97+
run: mv package.json.real package.json
98+
9199
- name: Create release and upload release asset
92100
uses: actions/github-script@v6
93101
with:

0 commit comments

Comments
 (0)