From 924a58334c789d2599367b0111eebdd09b313fd1 Mon Sep 17 00:00:00 2001 From: Avi Gopal Date: Thu, 29 Feb 2024 11:22:10 -0800 Subject: [PATCH 1/2] added pre-release action --- .../{codespell.yml => codespell.yaml} | 0 .github/workflows/publish.yaml | 53 +++++++++++++++++++ package.json | 2 +- 3 files changed, 54 insertions(+), 1 deletion(-) rename .github/workflows/{codespell.yml => codespell.yaml} (100%) create mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yaml similarity index 100% rename from .github/workflows/codespell.yml rename to .github/workflows/codespell.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..829550d --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,53 @@ +name: Publish + +on: + push: + tags: + - '*.*.*' + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' + + - name: Install Dependencies + run: npm ci + + - name: Package Extension + env: + VSCE_PAT: ${{ secrets.VSCE_PAT }} + run: npx vsce publish +--- +name: Pre-Release + +on: + push: + tags: + - '*.*.*-pre' + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' + + - name: Install Dependencies + run: npm ci + + - name: Package Extension + env: + VSCE_PAT: ${{ secrets.VSCE_PAT }} + run: npx vsce publish --pre-release \ No newline at end of file diff --git a/package.json b/package.json index 57d4a6f..7f65ce1 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "metabob", "displayName": "Metabob: Debug and Refactor with AI", "description": "Generative AI to automate debugging and refactoring Python code", - "version": "1.0.21", + "version": "1.1.0", "icon": "media/extension-icon.png", "repository": { "url": "https://github.com/MetabobProject/metabob-vscode", From 2db4f0070362c52c8794e3072f854d3d429dca76 Mon Sep 17 00:00:00 2001 From: Avi Gopal Date: Thu, 29 Feb 2024 11:26:55 -0800 Subject: [PATCH 2/2] check for versioning --- .github/workflows/publish.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 829550d..fbd33da 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -15,7 +15,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v2 with: - node-version: '14' + node-version: '18' - name: Install Dependencies run: npm ci @@ -42,7 +42,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v2 with: - node-version: '14' + node-version: '18' - name: Install Dependencies run: npm ci