From 8b07e6c349ddf481e7f1967b62fe0eb9a3f3d864 Mon Sep 17 00:00:00 2001 From: Felipe Suero <85468376+felipesu19@users.noreply.github.com> Date: Fri, 5 May 2023 14:23:40 -0400 Subject: [PATCH] Fix publishing flow https://github.com/joelspadin-garmin/vscode-private-extension-manager/issues/16#issuecomment-1324500525 based on the above issue, this should let us publish `@github/vscode-github-actions` which is our desired flow --- .github/workflows/publish.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 82a6ca96..e4100f69 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -80,7 +80,12 @@ jobs: - run: npm ci env: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - + + - name: create a package.json that actions/upload will like + 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@v3 @@ -88,6 +93,9 @@ jobs: name: vscode-github-actions-${{ env.EXT_VERSION }}.vsix path: ./vscode-github-actions-${{ env.EXT_VERSION }}.vsix + - name: restore old package.json + run: mv package.json.real package.json + - name: Create release and upload release asset uses: actions/github-script@v6 with: