Parcourir la source

Adding temp publish workflow
Disable automated changeset flow

ColemanRoo il y a 1 an
Parent
commit
5cbf4ca5c8

+ 3 - 2
.github/workflows/changeset-ai-releases.yml

@@ -8,8 +8,9 @@ run-name: Changeset AI Release ${{ github.actor != 'R00-B0T' && '- Create PR' ||
 # 4. Creating a GitHub release with the AI-generated notes
 
 on:
-  pull_request:
-    types: [closed, opened, synchronize, labeled]
+  # pull_request:
+  #   types: [closed, opened, synchronize, labeled]
+  workflow_dispatch:
 
 env:
   REPO_PATH: ${{ github.repository }}

+ 31 - 0
.github/workflows/temp-marketplace-publish.yml

@@ -0,0 +1,31 @@
+name: Publish Extension Temporary
+on:
+  push:
+    branches: ["main"]
+  workflow_dispatch:
+
+jobs:
+  publish-extension:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v3
+      - uses: actions/setup-node@v3
+        with:
+          node-version: 18
+      - run: |
+          git config user.name github-actions
+          git config user.email [email protected]
+      - name: Install Dependencies
+        run: |
+          npm install -g vsce ovsx
+          npm install
+          cd webview-ui
+          npm install
+          cd ..
+      - name: Package and Publish Extension
+        env:
+          VSCE_PAT: ${{ secrets.VSCE_PAT }}
+        run: |
+          current_package_version=$(node -p "require('./package.json').version")
+          npm run publish:marketplace
+          echo "Successfully published version $current_package_version to VS Code Marketplace"