diff --git a/.github/workflows/marketplace-publish.yml b/.github/workflows/marketplace-publish.yml index 07d6144d27..5f99b44ca6 100644 --- a/.github/workflows/marketplace-publish.yml +++ b/.github/workflows/marketplace-publish.yml @@ -6,7 +6,6 @@ on: jobs: publish-extension: - if: ${{ github.actor == 'R00-B0T'}} runs-on: ubuntu-latest if: ${{ github.actor == 'R00-B0T'}} steps: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 451db0d211..0000000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,70 +0,0 @@ -name: Release -run-name: Release ${{ github.event_name == 'push' && '- Create Changeset PR' || '- Approve & Merge Changeset PR' }} - -on: - pull_request: - types: [closed] - pull_request_target: - -concurrency: ${{ github.workflow }}-${{ github.ref }} - -env: - AWS_REGION: us-east-1 - -jobs: - release: - name: Release - if: > - github.event_name == 'pull_request' && - github.event.pull_request.merged == true && - github.event.pull_request.base.ref == 'main' - runs-on: ubuntu-latest - permissions: - contents: write - pull-requests: write - steps: - - name: Checkout Repo - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Setup Node.js 20 - uses: actions/setup-node@v4 - with: - node-version: 20 - - - name: NPM Install - run: | - npm run install:all - npm run build - - - name: Changeset Pull Request - id: changesets - uses: changesets/action@v1 - with: - commit: "changeset version bump" - title: "Changeset version bump" - version: npm run version-packages # This performs the changeset version bump - # publish: npm run publish # Revisit possible refactor along with npm-publish.yml - env: - GITHUB_TOKEN: ${{ secrets.CROSS_REPO_ACCESS_TOKEN }} - - auto-approve-and-merge: - name: Auto approve and merge Bump version PRs - runs-on: ubuntu-latest - if: github.actor == 'R00-B0T' && contains(github.event.pull_request.title, 'Changeset version bump') - permissions: - pull-requests: write - - steps: - - name: Checkout Repo - uses: actions/checkout@v4 - with: - token: ${{ secrets.CROSS_REPO_ACCESS_TOKEN }} - - name: Auto approve PR - uses: hmarr/auto-approve-action@v4 - with: - review-message: "I'm approving since it's a bump version PR" - - name: Enable automerge on PR - run: gh pr merge --squash --auto ${{ github.event.pull_request.number }} - env: - GH_TOKEN: ${{ secrets.CROSS_REPO_ACCESS_TOKEN }} \ No newline at end of file diff --git a/package.json b/package.json index 752ae42dcd..1568bc8250 100644 --- a/package.json +++ b/package.json @@ -150,6 +150,7 @@ "test:webview": "cd webview-ui && npm run test", "publish:marketplace": "vsce publish", "publish": "npm run build && changeset publish && npm install --package-lock-only", + "prepare": "husky", "version-packages": "changeset version && npm install --package-lock-only", "vscode:prepublish": "npm run package", "vsix": "mkdir -p bin && npx vsce package --out bin",