Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 2 additions & 34 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,38 +9,6 @@
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
97 changes: 8 additions & 89 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,93 +9,12 @@
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