Skip to content
This repository was archived by the owner on Jan 30, 2026. It is now read-only.

Commit 13a7bb2

Browse files
committed
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
1 parent 4c191c0 commit 13a7bb2

File tree

2 files changed

+9
-121
lines changed

2 files changed

+9
-121
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -9,38 +9,6 @@ on:
99
branches:
1010
- main
1111

12-
permissions:
13-
contents: read
14-
1512
jobs:
16-
test-typescript:
17-
name: TypeScript Tests
18-
runs-on: ubuntu-latest
19-
20-
steps:
21-
- name: Checkout
22-
id: checkout
23-
uses: actions/checkout@v4
24-
25-
- name: Setup Node.js
26-
id: setup-node
27-
uses: actions/setup-node@v4
28-
with:
29-
node-version-file: .node-version
30-
cache: npm
31-
32-
- name: Install Dependencies
33-
id: npm-ci
34-
run: npm ci
35-
36-
- name: Check Format
37-
id: npm-format-check
38-
run: npm run format:check
39-
40-
- name: Lint
41-
id: npm-lint
42-
run: npm run lint
43-
44-
- name: Test
45-
id: npm-ci-test
46-
run: npm run ci-test
13+
build:
14+
uses: CodingWithCalvin/.github/.github/workflows/gha-build.yml@main

.github/workflows/publish.yml

Lines changed: 7 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -9,91 +9,11 @@ on:
99
type: string
1010

1111
jobs:
12-
changelog:
13-
uses: CodingWithCalvin/.github/.github/workflows/generate-changelog.yml@main
14-
secrets: inherit
15-
16-
release:
17-
needs: changelog
18-
runs-on: ubuntu-latest
19-
outputs:
20-
version: ${{ inputs.version }}
21-
22-
permissions:
23-
contents: write
24-
25-
steps:
26-
- name: Checkout
27-
uses: actions/checkout@v4
28-
29-
- name: Setup Node.js
30-
uses: actions/setup-node@v4
31-
with:
32-
node-version-file: .node-version
33-
cache: npm
34-
35-
- name: Install Dependencies
36-
run: npm ci
37-
38-
- name: Rebuild dist
39-
run: npm run bundle
40-
41-
- name: Commit dist changes
42-
run: |
43-
git config user.name "github-actions[bot]"
44-
git config user.email "github-actions[bot]@users.noreply.github.com"
45-
git add dist/
46-
git diff --staged --quiet || git commit -m "chore: rebuild dist for v${{ inputs.version }}"
47-
git push
48-
49-
- name: Create and push tag
50-
run: |
51-
git tag v${{ inputs.version }}
52-
git push origin v${{ inputs.version }}
53-
54-
- name: Create GitHub Release
55-
uses: softprops/action-gh-release@v1
56-
with:
57-
tag_name: v${{ inputs.version }}
58-
name: v${{ inputs.version }}
59-
body: ${{ needs.changelog.outputs.changelog }}
60-
61-
notify-bluesky:
62-
needs: release
63-
uses: CodingWithCalvin/.github/.github/workflows/bluesky-post.yml@main
64-
with:
65-
post_text: |
66-
🚀 Visual Studio VSIX Versioner v${{ needs.release.outputs.version }} has been released!
67-
68-
Version your Visual Studio extensions with ease!
69-
70-
[📋 Release Notes](https://github.com/${{ github.repository }}/releases/tag/v${{ needs.release.outputs.version }})
71-
[📦 GitHub Marketplace](https://github.com/marketplace/actions/visual-studio-vsix-versioner)
72-
73-
#github #githubactions #devops #automation
74-
embed_url: https://github.com/marketplace/actions/visual-studio-vsix-versioner
75-
embed_title: Visual Studio VSIX Versioner
76-
embed_description: Version your Visual Studio extensions with ease!
77-
secrets:
78-
BLUESKY_USERNAME: ${{ secrets.BLUESKY_USERNAME }}
79-
BLUESKY_APP_PASSWORD: ${{ secrets.BLUESKY_APP_PASSWORD }}
80-
81-
notify-linkedin:
82-
needs: release
83-
uses: CodingWithCalvin/.github/.github/workflows/linkedin-post.yml@main
12+
publish:
13+
uses: CodingWithCalvin/.github/.github/workflows/gha-publish.yml@main
8414
with:
85-
post_text: |
86-
🚀 Visual Studio VSIX Versioner v${{ needs.release.outputs.version }} has been released!
87-
88-
Version your Visual Studio extensions with ease!
89-
90-
📋 Release Notes: https://github.com/${{ github.repository }}/releases/tag/v${{ needs.release.outputs.version }}
91-
📦 GitHub Marketplace: https://github.com/marketplace/actions/visual-studio-vsix-versioner
92-
93-
#github #githubactions #devops #automation
94-
article_url: https://github.com/marketplace/actions/visual-studio-vsix-versioner
95-
article_title: Visual Studio VSIX Versioner
96-
article_description: Version your Visual Studio extensions with ease!
97-
secrets:
98-
LINKEDIN_ACCESS_TOKEN: ${{ secrets.LINKEDIN_ACCESS_TOKEN }}
99-
LINKEDIN_CLIENT_ID: ${{ secrets.LINKEDIN_CLIENT_ID }}
15+
version: ${{ inputs.version }}
16+
action-name: 'Visual Studio VSIX Versioner'
17+
action-slug: 'visual-studio-vsix-versioner'
18+
action-description: 'Version your Visual Studio extensions with ease!'
19+
secrets: inherit

0 commit comments

Comments
 (0)