From 9c3ad27fe61bc02944bfd7cdd8bc0cc5dcc09ee0 Mon Sep 17 00:00:00 2001 From: Stan Dzhumaev Date: Mon, 9 Dec 2024 10:36:44 -0800 Subject: [PATCH] [AXON-23] Add pre-release logic to CI --- .github/workflows/release-nightly.yaml | 15 ++++++++++++++- .github/workflows/release.yaml | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-nightly.yaml b/.github/workflows/release-nightly.yaml index 41770e06..aa20b3ad 100644 --- a/.github/workflows/release-nightly.yaml +++ b/.github/workflows/release-nightly.yaml @@ -54,7 +54,20 @@ jobs: - name: Build the extension run: npm run extension:package - # No VSCE/OVSX publish actions here for the time being - let's get the builds going first + - name: Publish the pre-release extension + run: | + echo npx vsce publish \ + --pre-release \ + --baseContentUrl https://raw.githubusercontent.com/atlassian/atlascode/main/ \ + -p ${{ secrets.VSCE_MARKETPLACE_TOKEN }} \ + --packagePath atlascode-${PACKAGE_VERSION}.vsix + + - name: Publish the pre-release to OpenVSX + run: | + echo npx ovsx publish \ + --pre-release \ + -p ${{ secrets.OPENVSX_KEY }} \ + "atlascode-${PACKAGE_VERSION}.vsix" - name: Create Tag run: | diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index eb9d9014..f8ba5c5e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -71,7 +71,7 @@ jobs: npx vsce verify-pat -p ${{ secrets.VSCE_MARKETPLACE_TOKEN }} # echo npx vsce publish \ # -p ${{ secrets.VSCE_MARKETPLACE_TOKEN }} \ - # --baseContentUrl https://bitbucket.org/atlassianlabs/atlascode/src/main/ \ + # --baseContentUrl https://raw.githubusercontent.com/atlassian/atlascode/main/ \ # --packagePath atlascode-${PACKAGE_VERSION}.vsix - name: Publish to OpenVSX