Skip to content

Commit e25b761

Browse files
authored
Merge pull request #178 from github/publishing-flow-fix
Fix publishing flow
2 parents 98e93f9 + 8b07e6c commit e25b761

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.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)