From 3930d89429981f8ffc495c4ca823a5f4c7b6ff06 Mon Sep 17 00:00:00 2001 From: "Calvin A. Allen" Date: Sat, 3 Jan 2026 21:18:30 -0500 Subject: [PATCH 1/2] refactor(ci): use reusable workflows from CodingWithCalvin/.github - Update build.yml to use gha-build.yml reusable workflow - Update publish.yml to use gha-publish.yml reusable workflow --- .github/workflows/build.yml | 36 +------------ .github/workflows/publish.yml | 96 +++-------------------------------- 2 files changed, 9 insertions(+), 123 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 657e1ca..72ac44d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,38 +9,6 @@ on: branches: - main -permissions: - contents: read - jobs: - test-typescript: - name: TypeScript Tests - runs-on: ubuntu-latest - - steps: - - name: Checkout - id: checkout - uses: actions/checkout@v4 - - - name: Setup Node.js - id: setup-node - uses: actions/setup-node@v4 - with: - node-version-file: .node-version - cache: npm - - - name: Install Dependencies - id: npm-ci - run: npm ci - - - name: Check Format - id: npm-format-check - run: npm run format:check - - - name: Lint - id: npm-lint - run: npm run lint - - - name: Test - id: npm-ci-test - run: npm run ci-test + build: + uses: CodingWithCalvin/.github/.github/workflows/gha-build.yml@main diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index bae9198..6b19857 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,93 +9,11 @@ on: type: string jobs: - changelog: - uses: CodingWithCalvin/.github/.github/workflows/generate-changelog.yml@main - secrets: inherit - - release: - needs: changelog - runs-on: ubuntu-latest - outputs: - version: ${{ inputs.version }} - - permissions: - contents: write - - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version-file: .node-version - cache: npm - - - name: Install Dependencies - run: npm ci - - - name: Rebuild dist - run: npm run bundle - - - name: Commit dist changes - run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - git add dist/ - git diff --staged --quiet || git commit -m "chore: rebuild dist for v${{ inputs.version }}" - git push - - - name: Create and push tag - run: | - git tag v${{ inputs.version }} - git push origin v${{ inputs.version }} - - - name: Create GitHub Release - uses: softprops/action-gh-release@v1 - with: - tag_name: v${{ inputs.version }} - name: v${{ inputs.version }} - body: ${{ needs.changelog.outputs.changelog }} - - notify-bluesky: - needs: release - uses: CodingWithCalvin/.github/.github/workflows/bluesky-post.yml@main - with: - post_text: | - 🚀 JetBrains Marketplace Publisher v${{ needs.release.outputs.version }} has been released! - - Publish your JetBrains plugins to the marketplace with ease! - - [📋 Release Notes](https://github.com/${{ github.repository }}/releases/tag/v${{ needs.release.outputs.version }}) - [📦 GitHub Marketplace](https://github.com/marketplace/actions/jetbrains-marketplace-publisher) - - #github #githubactions #devops #automation - embed_url: https://github.com/marketplace/actions/jetbrains-marketplace-publisher - embed_title: JetBrains Marketplace Publisher - embed_description: - Publish your JetBrains plugins to the marketplace with ease! - secrets: - BLUESKY_USERNAME: ${{ secrets.BLUESKY_USERNAME }} - BLUESKY_APP_PASSWORD: ${{ secrets.BLUESKY_APP_PASSWORD }} - - notify-linkedin: - needs: release - uses: CodingWithCalvin/.github/.github/workflows/linkedin-post.yml@main + publish: + uses: CodingWithCalvin/.github/.github/workflows/gha-publish.yml@main with: - post_text: | - 🚀 JetBrains Marketplace Publisher v${{ needs.release.outputs.version }} has been released! - - Publish your JetBrains plugins to the marketplace with ease! - - 📋 Release Notes: https://github.com/${{ github.repository }}/releases/tag/v${{ needs.release.outputs.version }} - 📦 GitHub Marketplace: https://github.com/marketplace/actions/jetbrains-marketplace-publisher - - #github #githubactions #devops #automation - article_url: https://github.com/marketplace/actions/jetbrains-marketplace-publisher - article_title: JetBrains Marketplace Publisher - article_description: - Publish your JetBrains plugins to the marketplace with ease! - secrets: - LINKEDIN_ACCESS_TOKEN: ${{ secrets.LINKEDIN_ACCESS_TOKEN }} - LINKEDIN_CLIENT_ID: ${{ secrets.LINKEDIN_CLIENT_ID }} + version: ${{ inputs.version }} + action-name: 'JetBrains Marketplace Publisher' + action-slug: 'jetbrains-marketplace-publisher' + action-description: 'Publish your JetBrains plugins to the marketplace with ease!' + secrets: inherit From ad538f52c0c690a2b8c3950936aa0950ca9c381f Mon Sep 17 00:00:00 2001 From: "Calvin A. Allen" Date: Sat, 3 Jan 2026 21:19:59 -0500 Subject: [PATCH 2/2] fix: format publish.yml with prettier --- .github/workflows/publish.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6b19857..0528fe1 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,5 +15,6 @@ jobs: version: ${{ inputs.version }} action-name: 'JetBrains Marketplace Publisher' action-slug: 'jetbrains-marketplace-publisher' - action-description: 'Publish your JetBrains plugins to the marketplace with ease!' + action-description: + 'Publish your JetBrains plugins to the marketplace with ease!' secrets: inherit