From 100be30b413cca4c82fef05940865ac659d422d1 Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 6 Dec 2024 08:37:31 -0800 Subject: [PATCH 1/8] test macos-14 --- .github/workflows/main.yaml | 4 +- .github/workflows/preview.yaml | 167 +++++++++++++++++---------------- 2 files changed, 87 insertions(+), 84 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index b73cdb3ad..f54d7bbe4 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -49,11 +49,11 @@ jobs: platform: alpine arch: x64 npm_config_arch: x64 - - os: macos-12 # should migrate this to the newer x64 version of macos-14 + - os: macos-14 platform: darwin arch: x64 npm_config_arch: x64 - - os: macos-12 # same here, especially + - os: macos-14 # same here, especially platform: darwin arch: arm64 npm_config_arch: arm64 diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index a65e79c7f..7f50f37bf 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -1,8 +1,11 @@ name: Publish Preview Extension on: - release: - types: [prereleased] + push: + branches: + - nate/mac-14-ci + # release: + # types: [prereleased] jobs: check_release_name: @@ -49,11 +52,11 @@ jobs: platform: alpine arch: x64 npm_config_arch: x64 - - os: macos-12 # should migrate this to the newer x64 version of macos-14 + - os: macos-14 platform: darwin arch: x64 npm_config_arch: x64 - - os: macos-12 # same here, especially + - os: macos-14 platform: darwin arch: arm64 npm_config_arch: arm64 @@ -161,93 +164,93 @@ jobs: name: ${{ env.target }}-vsix path: "extensions/vscode/*.vsix" - release: - permissions: - contents: write - runs-on: ubuntu-latest - needs: - - build - steps: - - name: Checkout - uses: actions/checkout@v4 + # release: + # permissions: + # contents: write + # runs-on: ubuntu-latest + # needs: + # - build + # steps: + # - name: Checkout + # uses: actions/checkout@v4 - - name: Set up Git - run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" + # - name: Set up Git + # run: | + # git config --local user.email "action@github.com" + # git config --local user.name "GitHub Action" - # Download the .vsix artifacts - - uses: actions/download-artifact@v4 - with: - pattern: "*-vsix" - path: vsix-artifacts - merge-multiple: true + # # Download the .vsix artifacts + # - uses: actions/download-artifact@v4 + # with: + # pattern: "*-vsix" + # path: vsix-artifacts + # merge-multiple: true - - name: Release - uses: softprops/action-gh-release@v2 - with: - tag_name: ${{ github.ref_name }} - files: | - vsix-artifacts/*.vsix - token: ${{ secrets.CI_GITHUB_TOKEN }} - repository: continuedev/continue - prerelease: true + # - name: Release + # uses: softprops/action-gh-release@v2 + # with: + # tag_name: ${{ github.ref_name }} + # files: | + # vsix-artifacts/*.vsix + # token: ${{ secrets.CI_GITHUB_TOKEN }} + # repository: continuedev/continue + # prerelease: true - publish: - runs-on: ubuntu-latest - needs: - - build - permissions: - contents: write - steps: - # 0. Setup git - - name: Checkout - uses: actions/checkout@v4 + # publish: + # runs-on: ubuntu-latest + # needs: + # - build + # permissions: + # contents: write + # steps: + # # 0. Setup git + # - name: Checkout + # uses: actions/checkout@v4 - - name: Set up Git - run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" + # - name: Set up Git + # run: | + # git config --local user.email "action@github.com" + # git config --local user.name "GitHub Action" - - name: Pull latest changes - run: git pull origin main + # - name: Pull latest changes + # run: git pull origin main - # 1. Download the artifacts - - uses: actions/download-artifact@v4 - with: - pattern: "*-vsix" - path: vsix-artifacts - merge-multiple: true + # # 1. Download the artifacts + # - uses: actions/download-artifact@v4 + # with: + # pattern: "*-vsix" + # path: vsix-artifacts + # merge-multiple: true - # 2. Publish the extension to VS Code Marketplace - - name: Publish to VS Code Marketplace - run: | - cd extensions/vscode - npx vsce publish --pre-release --packagePath ../../vsix-artifacts/*.vsix - env: - VSCE_PAT: ${{ secrets.VSCE_TOKEN }} + # # 2. Publish the extension to VS Code Marketplace + # - name: Publish to VS Code Marketplace + # run: | + # cd extensions/vscode + # npx vsce publish --pre-release --packagePath ../../vsix-artifacts/*.vsix + # env: + # VSCE_PAT: ${{ secrets.VSCE_TOKEN }} - # 3. Publish the extension to Open VSX Registry - - name: Publish (Open VSX Registry) - continue-on-error: true - run: | - cd extensions/vscode - npx ovsx publish --pre-release -p ${{ secrets.VSX_REGISTRY_TOKEN }} --packagePath ../../vsix-artifacts/*.vsix + # # 3. Publish the extension to Open VSX Registry + # - name: Publish (Open VSX Registry) + # continue-on-error: true + # run: | + # cd extensions/vscode + # npx ovsx publish --pre-release -p ${{ secrets.VSX_REGISTRY_TOKEN }} --packagePath ../../vsix-artifacts/*.vsix - # 4. Update the package.json version and push changes - # - name: Update version in package.json - # run: | - # cd extensions/vscode - # npm version patch + # 4. Update the package.json version and push changes + # - name: Update version in package.json + # run: | + # cd extensions/vscode + # npm version patch - # - name: Commit changes - # run: | - # git config --local user.email "action@github.com" - # git config --local user.name "GitHub Action" - # git commit -am "💚 Update package.json version [skip ci]" + # - name: Commit changes + # run: | + # git config --local user.email "action@github.com" + # git config --local user.name "GitHub Action" + # git commit -am "💚 Update package.json version [skip ci]" - # - name: Push changes - # uses: ad-m/github-push-action@master - # with: - # github_token: ${{ secrets.GITHUB_TOKEN }} - # branch: ${{ github.ref }} + # - name: Push changes + # uses: ad-m/github-push-action@master + # with: + # github_token: ${{ secrets.GITHUB_TOKEN }} + # branch: ${{ github.ref }} From 8d5030c1038ddbcf31b0bc0bef1224b2a89fbfce Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 6 Dec 2024 09:10:40 -0800 Subject: [PATCH 2/8] don't check release name --- .github/workflows/preview.yaml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 7f50f37bf..18e6161c4 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -8,23 +8,23 @@ on: # types: [prereleased] jobs: - check_release_name: - runs-on: ubuntu-latest - outputs: - should_run: ${{ steps.check.outputs.should_run }} - steps: - - id: check - working-directory: . - run: | - if [[ "${{ github.event.release.tag_name }}" == v0.9.*-vscode ]]; then - echo "should_run=true" >> $GITHUB_OUTPUT - else - echo "should_run=false" >> $GITHUB_OUTPUT - fi + # check_release_name: + # runs-on: ubuntu-latest + # outputs: + # should_run: ${{ steps.check.outputs.should_run }} + # steps: + # - id: check + # working-directory: . + # run: | + # if [[ "${{ github.event.release.tag_name }}" == v0.9.*-vscode ]]; then + # echo "should_run=true" >> $GITHUB_OUTPUT + # else + # echo "should_run=false" >> $GITHUB_OUTPUT + # fi build: - needs: check_release_name - if: needs.check_release_name.outputs.should_run == 'true' + # needs: check_release_name + # if: needs.check_release_name.outputs.should_run == 'true' strategy: matrix: include: From 9e41fa1e678d165ae5554ffdb292ec7c0ba759eb Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 6 Dec 2024 13:44:29 -0800 Subject: [PATCH 3/8] use 13 --- .github/workflows/main.yaml | 4 ++-- .github/workflows/preview.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index f54d7bbe4..ae0359027 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -49,11 +49,11 @@ jobs: platform: alpine arch: x64 npm_config_arch: x64 - - os: macos-14 + - os: macos-13 platform: darwin arch: x64 npm_config_arch: x64 - - os: macos-14 # same here, especially + - os: macos-13 platform: darwin arch: arm64 npm_config_arch: arm64 diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 18e6161c4..9a3604f09 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -52,11 +52,11 @@ jobs: platform: alpine arch: x64 npm_config_arch: x64 - - os: macos-14 + - os: macos-13 platform: darwin arch: x64 npm_config_arch: x64 - - os: macos-14 + - os: macos-13 platform: darwin arch: arm64 npm_config_arch: arm64 From b95956155f8c40beebd89894fdf1d2184295569c Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 6 Dec 2024 15:45:57 -0800 Subject: [PATCH 4/8] preview.yaml back to normal --- .github/workflows/preview.yaml | 193 ++++++++++++++++----------------- 1 file changed, 95 insertions(+), 98 deletions(-) diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 9a3604f09..f433e8fe0 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -1,30 +1,27 @@ name: Publish Preview Extension on: - push: - branches: - - nate/mac-14-ci - # release: - # types: [prereleased] + release: + types: [prereleased] jobs: - # check_release_name: - # runs-on: ubuntu-latest - # outputs: - # should_run: ${{ steps.check.outputs.should_run }} - # steps: - # - id: check - # working-directory: . - # run: | - # if [[ "${{ github.event.release.tag_name }}" == v0.9.*-vscode ]]; then - # echo "should_run=true" >> $GITHUB_OUTPUT - # else - # echo "should_run=false" >> $GITHUB_OUTPUT - # fi + check_release_name: + runs-on: ubuntu-latest + outputs: + should_run: ${{ steps.check.outputs.should_run }} + steps: + - id: check + working-directory: . + run: | + if [[ "${{ github.event.release.tag_name }}" == v0.9.*-vscode ]]; then + echo "should_run=true" >> $GITHUB_OUTPUT + else + echo "should_run=false" >> $GITHUB_OUTPUT + fi build: - # needs: check_release_name - # if: needs.check_release_name.outputs.should_run == 'true' + needs: check_release_name + if: needs.check_release_name.outputs.should_run == 'true' strategy: matrix: include: @@ -164,93 +161,93 @@ jobs: name: ${{ env.target }}-vsix path: "extensions/vscode/*.vsix" - # release: - # permissions: - # contents: write - # runs-on: ubuntu-latest - # needs: - # - build - # steps: - # - name: Checkout - # uses: actions/checkout@v4 + release: + permissions: + contents: write + runs-on: ubuntu-latest + needs: + - build + steps: + - name: Checkout + uses: actions/checkout@v4 - # - name: Set up Git - # run: | - # git config --local user.email "action@github.com" - # git config --local user.name "GitHub Action" + - name: Set up Git + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" - # # Download the .vsix artifacts - # - uses: actions/download-artifact@v4 - # with: - # pattern: "*-vsix" - # path: vsix-artifacts - # merge-multiple: true + # Download the .vsix artifacts + - uses: actions/download-artifact@v4 + with: + pattern: "*-vsix" + path: vsix-artifacts + merge-multiple: true - # - name: Release - # uses: softprops/action-gh-release@v2 - # with: - # tag_name: ${{ github.ref_name }} - # files: | - # vsix-artifacts/*.vsix - # token: ${{ secrets.CI_GITHUB_TOKEN }} - # repository: continuedev/continue - # prerelease: true + - name: Release + uses: softprops/action-gh-release@v2 + with: + tag_name: ${{ github.ref_name }} + files: | + vsix-artifacts/*.vsix + token: ${{ secrets.CI_GITHUB_TOKEN }} + repository: continuedev/continue + prerelease: true - # publish: - # runs-on: ubuntu-latest - # needs: - # - build - # permissions: - # contents: write - # steps: - # # 0. Setup git - # - name: Checkout - # uses: actions/checkout@v4 + publish: + runs-on: ubuntu-latest + needs: + - build + permissions: + contents: write + steps: + # 0. Setup git + - name: Checkout + uses: actions/checkout@v4 - # - name: Set up Git - # run: | - # git config --local user.email "action@github.com" - # git config --local user.name "GitHub Action" + - name: Set up Git + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" - # - name: Pull latest changes - # run: git pull origin main + - name: Pull latest changes + run: git pull origin main - # # 1. Download the artifacts - # - uses: actions/download-artifact@v4 - # with: - # pattern: "*-vsix" - # path: vsix-artifacts - # merge-multiple: true + # 1. Download the artifacts + - uses: actions/download-artifact@v4 + with: + pattern: "*-vsix" + path: vsix-artifacts + merge-multiple: true - # # 2. Publish the extension to VS Code Marketplace - # - name: Publish to VS Code Marketplace - # run: | - # cd extensions/vscode - # npx vsce publish --pre-release --packagePath ../../vsix-artifacts/*.vsix - # env: - # VSCE_PAT: ${{ secrets.VSCE_TOKEN }} + # 2. Publish the extension to VS Code Marketplace + - name: Publish to VS Code Marketplace + run: | + cd extensions/vscode + npx vsce publish --pre-release --packagePath ../../vsix-artifacts/*.vsix + env: + VSCE_PAT: ${{ secrets.VSCE_TOKEN }} - # # 3. Publish the extension to Open VSX Registry - # - name: Publish (Open VSX Registry) - # continue-on-error: true - # run: | - # cd extensions/vscode - # npx ovsx publish --pre-release -p ${{ secrets.VSX_REGISTRY_TOKEN }} --packagePath ../../vsix-artifacts/*.vsix + # 3. Publish the extension to Open VSX Registry + - name: Publish (Open VSX Registry) + continue-on-error: true + run: | + cd extensions/vscode + npx ovsx publish --pre-release -p ${{ secrets.VSX_REGISTRY_TOKEN }} --packagePath ../../vsix-artifacts/*.vsix - # 4. Update the package.json version and push changes - # - name: Update version in package.json - # run: | - # cd extensions/vscode - # npm version patch + 4. Update the package.json version and push changes + - name: Update version in package.json + run: | + cd extensions/vscode + npm version patch - # - name: Commit changes - # run: | - # git config --local user.email "action@github.com" - # git config --local user.name "GitHub Action" - # git commit -am "💚 Update package.json version [skip ci]" + - name: Commit changes + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git commit -am "💚 Update package.json version [skip ci]" - # - name: Push changes - # uses: ad-m/github-push-action@master - # with: - # github_token: ${{ secrets.GITHUB_TOKEN }} - # branch: ${{ github.ref }} + - name: Push changes + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: ${{ github.ref }} From 39a0cab5e413ac060a492d1ab24bd9367688d3b8 Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 6 Dec 2024 15:47:12 -0800 Subject: [PATCH 5/8] comment --- .github/workflows/preview.yaml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index f433e8fe0..2f3e0875d 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -234,20 +234,20 @@ jobs: cd extensions/vscode npx ovsx publish --pre-release -p ${{ secrets.VSX_REGISTRY_TOKEN }} --packagePath ../../vsix-artifacts/*.vsix - 4. Update the package.json version and push changes - - name: Update version in package.json - run: | - cd extensions/vscode - npm version patch + # 4. Update the package.json version and push changes + # - name: Update version in package.json + # run: | + # cd extensions/vscode + # npm version patch - - name: Commit changes - run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git commit -am "💚 Update package.json version [skip ci]" + # - name: Commit changes + # run: | + # git config --local user.email "action@github.com" + # git config --local user.name "GitHub Action" + # git commit -am "💚 Update package.json version [skip ci]" - - name: Push changes - uses: ad-m/github-push-action@master - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - branch: ${{ github.ref }} + # - name: Push changes + # uses: ad-m/github-push-action@master + # with: + # github_token: ${{ secrets.GITHUB_TOKEN }} + # branch: ${{ github.ref }} From a255583d2264b40a22546fd45871ceabaaf2c5d3 Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 6 Dec 2024 15:47:33 -0800 Subject: [PATCH 6/8] tab --- .github/workflows/preview.yaml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 2f3e0875d..da46e9d49 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -234,20 +234,20 @@ jobs: cd extensions/vscode npx ovsx publish --pre-release -p ${{ secrets.VSX_REGISTRY_TOKEN }} --packagePath ../../vsix-artifacts/*.vsix - # 4. Update the package.json version and push changes - # - name: Update version in package.json - # run: | - # cd extensions/vscode - # npm version patch + # 4. Update the package.json version and push changes + # - name: Update version in package.json + # run: | + # cd extensions/vscode + # npm version patch - # - name: Commit changes - # run: | - # git config --local user.email "action@github.com" - # git config --local user.name "GitHub Action" - # git commit -am "💚 Update package.json version [skip ci]" + # - name: Commit changes + # run: | + # git config --local user.email "action@github.com" + # git config --local user.name "GitHub Action" + # git commit -am "💚 Update package.json version [skip ci]" - # - name: Push changes - # uses: ad-m/github-push-action@master - # with: - # github_token: ${{ secrets.GITHUB_TOKEN }} - # branch: ${{ github.ref }} + # - name: Push changes + # uses: ad-m/github-push-action@master + # with: + # github_token: ${{ secrets.GITHUB_TOKEN }} + # branch: ${{ github.ref }} From 9857ea8df6d6833524cc279d72f2de61ae218c7e Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 6 Dec 2024 15:47:57 -0800 Subject: [PATCH 7/8] tab --- .github/workflows/preview.yaml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index da46e9d49..2f3e0875d 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -234,20 +234,20 @@ jobs: cd extensions/vscode npx ovsx publish --pre-release -p ${{ secrets.VSX_REGISTRY_TOKEN }} --packagePath ../../vsix-artifacts/*.vsix - # 4. Update the package.json version and push changes - # - name: Update version in package.json - # run: | - # cd extensions/vscode - # npm version patch + # 4. Update the package.json version and push changes + # - name: Update version in package.json + # run: | + # cd extensions/vscode + # npm version patch - # - name: Commit changes - # run: | - # git config --local user.email "action@github.com" - # git config --local user.name "GitHub Action" - # git commit -am "💚 Update package.json version [skip ci]" + # - name: Commit changes + # run: | + # git config --local user.email "action@github.com" + # git config --local user.name "GitHub Action" + # git commit -am "💚 Update package.json version [skip ci]" - # - name: Push changes - # uses: ad-m/github-push-action@master - # with: - # github_token: ${{ secrets.GITHUB_TOKEN }} - # branch: ${{ github.ref }} + # - name: Push changes + # uses: ad-m/github-push-action@master + # with: + # github_token: ${{ secrets.GITHUB_TOKEN }} + # branch: ${{ github.ref }} From 321e079d527407e29fa78c595e30c0369639e2e6 Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 6 Dec 2024 15:48:16 -0800 Subject: [PATCH 8/8] more tabs --- .github/workflows/preview.yaml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 2f3e0875d..bd5f4b7ac 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -234,20 +234,20 @@ jobs: cd extensions/vscode npx ovsx publish --pre-release -p ${{ secrets.VSX_REGISTRY_TOKEN }} --packagePath ../../vsix-artifacts/*.vsix - # 4. Update the package.json version and push changes - # - name: Update version in package.json - # run: | - # cd extensions/vscode - # npm version patch + # 4. Update the package.json version and push changes + # - name: Update version in package.json + # run: | + # cd extensions/vscode + # npm version patch - # - name: Commit changes - # run: | - # git config --local user.email "action@github.com" - # git config --local user.name "GitHub Action" - # git commit -am "💚 Update package.json version [skip ci]" + # - name: Commit changes + # run: | + # git config --local user.email "action@github.com" + # git config --local user.name "GitHub Action" + # git commit -am "💚 Update package.json version [skip ci]" - # - name: Push changes - # uses: ad-m/github-push-action@master - # with: - # github_token: ${{ secrets.GITHUB_TOKEN }} - # branch: ${{ github.ref }} + # - name: Push changes + # uses: ad-m/github-push-action@master + # with: + # github_token: ${{ secrets.GITHUB_TOKEN }} + # branch: ${{ github.ref }}