Skip to content

Commit 0dddc29

Browse files
committed
refactor: streamline CI workflows by removing lint and build jobs, update changelog format
1 parent 78f8aaf commit 0dddc29

File tree

4 files changed

+18
-172
lines changed

4 files changed

+18
-172
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build source code and check lint
1+
name: Build and publish
22

33
concurrency:
44
group: ${{ github.workflow }}-${{ github.ref }}
@@ -10,70 +10,10 @@ on:
1010
- "*"
1111

1212
jobs:
13-
lint:
14-
runs-on: ubuntu-latest
15-
steps:
16-
- name: Check out
17-
uses: actions/checkout@v5
18-
- uses: oven-sh/setup-bun@v2
19-
- name: Install dependencies
20-
id: install_code
21-
run: bun i
22-
- name: Lint
23-
id: lint_code
24-
run: bun run lint
25-
- name: Build
26-
id: build_code
27-
run: bun run build
28-
- name: Verify
29-
id: verify_code
30-
run: bun run verify:web
31-
build_android:
32-
needs: lint
33-
runs-on: ubuntu-latest
34-
steps:
35-
- name: Check out
36-
uses: actions/checkout@v5
37-
- uses: oven-sh/setup-bun@v2
38-
- name: Install dependencies
39-
id: install_code
40-
run: bun i
41-
- name: Setup java
42-
uses: actions/setup-java@v5
43-
with:
44-
distribution: 'zulu'
45-
java-version: '21'
46-
cache: 'gradle'
47-
cache-dependency-path: | # optional
48-
android/.gradle/*.gradle*
49-
android/**/gradle-wrapper.properties
50-
- name: Build
51-
id: build_code
52-
run: npm run verify:android
53-
build_ios:
54-
needs: lint
55-
runs-on: macOS-latest
56-
steps:
57-
- name: Check out
58-
uses: actions/checkout@v5
59-
- uses: oven-sh/setup-bun@v2
60-
- uses: actions/cache@v4
61-
id: cocoapods-cache
62-
with:
63-
path: ios/Pods
64-
key: ${{ runner.os }}-pods-${{ hashFiles('ios/Podfile.lock') }}
65-
restore-keys: |
66-
${{ runner.os }}-pods-
67-
- name: Install dependencies
68-
id: install_code
69-
run: bun i
70-
- name: Build
71-
id: build_code
72-
run: bun run verify:ios
13+
# Tests already passed before tag was created, so just build and deploy
7314
deploy:
74-
needs: [build_android, build_ios]
7515
runs-on: ubuntu-latest
76-
name: "Build code and npm release"
16+
name: "Build and publish to npm"
7717
permissions:
7818
contents: write
7919
id-token: write

.github/workflows/bump_version.yml

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,17 @@ on:
1010
- '.github/**'
1111

1212
jobs:
13+
# Run all tests first before creating any tags
14+
test:
15+
if: ${{ !startsWith(github.event.head_commit.message, 'chore(release):') }}
16+
uses: ./.github/workflows/test.yml
17+
18+
# Only bump version and create tag if all tests pass
1319
bump-version:
20+
needs: [test]
1421
if: ${{ !startsWith(github.event.head_commit.message, 'chore(release):') }}
1522
runs-on: ubuntu-latest
16-
name: "Bump version and create changelog with standard version"
23+
name: "Bump version and create tag"
1724
steps:
1825
- name: Check out
1926
uses: actions/checkout@v5
@@ -34,27 +41,15 @@ jobs:
3441
run: |
3542
git add README.md
3643
git commit --m "docs: update doc" || true
37-
- name: Create bump and changelog main
44+
- name: Create version bump main
3845
if: github.ref == 'refs/heads/main'
39-
run: bunx capacitor-plugin-standard-version@latest
40-
- name: Create bump and changelog development
46+
run: bunx capacitor-plugin-standard-version@latest --skip.changelog
47+
- name: Create version bump development
4148
if: github.ref != 'refs/heads/main'
42-
run: bunx capacitor-plugin-standard-version@latest --prerelease alpha
49+
run: bunx capacitor-plugin-standard-version@latest --prerelease alpha --skip.changelog
4350
- name: Push to origin
4451
run: |
4552
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
4653
remote_repo="https://${GITHUB_ACTOR}:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git"
4754
git pull $remote_repo $CURRENT_BRANCH
4855
git push $remote_repo HEAD:$CURRENT_BRANCH --follow-tags --tags
49-
create-cache:
50-
if: ${{ !startsWith(github.event.head_commit.message, 'chore(release):') }}
51-
runs-on: ubuntu-latest
52-
name: "Create global cache on main branch"
53-
steps:
54-
- uses: actions/checkout@v5
55-
- uses: oven-sh/setup-bun@v2
56-
- name: Install dependencies
57-
id: install_code
58-
run: bun i
59-
- name: CLI capacitor-standard-version install
60-
run: bunx capacitor-standard-version@latest --version

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- renovate/**
77
pull_request:
88
branches: [ main ]
9+
workflow_call: # Allow this workflow to be called by other workflows
910

1011
jobs:
1112
build_android:

CHANGELOG.md

Lines changed: 2 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,5 @@
11
# Changelog
22

3-
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
3+
All notable changes to this project are documented in the GitHub Releases page.
44

5-
## [7.1.7](https://github.com/Cap-go/capacitor-pay/compare/7.1.6...7.1.7) (2025-10-30)
6-
7-
8-
### Bug Fixes
9-
10-
* pluginVersion lint issue ([60b9765](https://github.com/Cap-go/capacitor-pay/commit/60b976589ab1db6e54e71859797ea71630241faa))
11-
12-
## [7.1.6](https://github.com/Cap-go/capacitor-pay/compare/7.1.5...7.1.6) (2025-10-29)
13-
14-
15-
### Bug Fixes
16-
17-
* implement getPluginVersion method to return plugin version ([758ca7d](https://github.com/Cap-go/capacitor-pay/commit/758ca7d35ac80a129f6c61cb11666b48e528232c))
18-
19-
## [7.1.5](https://github.com/Cap-go/capacitor-pay/compare/7.1.4...7.1.5) (2025-10-29)
20-
21-
22-
### Bug Fixes
23-
24-
* CI/CD config ([1c912df](https://github.com/Cap-go/capacitor-pay/commit/1c912df4ded7070363eb495750e615252a03652c))
25-
* model github action ([d00fbf8](https://github.com/Cap-go/capacitor-pay/commit/d00fbf8dee75e4b5248ed2ab39381361b0ca6f5b))
26-
* update github action ([4febd5e](https://github.com/Cap-go/capacitor-pay/commit/4febd5e423fbad0b35090ae57cf376a9f3840137))
27-
28-
## [7.1.4](https://github.com/Cap-go/capacitor-pay/compare/7.1.3...7.1.4) (2025-10-27)
29-
30-
31-
### Bug Fixes
32-
33-
* renovate capacitor dep ([4c7fb5c](https://github.com/Cap-go/capacitor-pay/commit/4c7fb5c8af223ec0cfa7e3640f3bdafd3a2816d5))
34-
35-
## [7.1.3](https://github.com/Cap-go/capacitor-pay/compare/7.1.2...7.1.3) (2025-10-26)
36-
37-
38-
### Bug Fixes
39-
40-
* prevent bump for app ([702acb9](https://github.com/Cap-go/capacitor-pay/commit/702acb990f35e363d3b5aae872aadffad5c2561d))
41-
42-
## [7.1.2](https://github.com/Cap-go/capacitor-pay/compare/7.1.1...7.1.2) (2025-10-26)
43-
44-
## [7.1.1](https://github.com/Cap-go/capacitor-pay/compare/7.1.0...7.1.1) (2025-10-23)
45-
46-
47-
### Bug Fixes
48-
49-
* remove footer in discord ([f455a40](https://github.com/Cap-go/capacitor-pay/commit/f455a40b80d760a28f20bbd40f9645036d84b9eb))
50-
* update Discord release webhook username to include repository name ([5fdcf15](https://github.com/Cap-go/capacitor-pay/commit/5fdcf151777423f328a1c8ed35b88b2be9ec84b3))
51-
52-
## [7.1.0](https://github.com/Cap-go/capacitor-pay/compare/7.0.9...7.1.0) (2025-10-23)
53-
54-
55-
### Features
56-
57-
* add getPluginVersion method to PayPlugin and web implementation ([caf065c](https://github.com/Cap-go/capacitor-pay/commit/caf065c4e05e6004052032fbde7c27bb90c7e944))
58-
59-
60-
### Bug Fixes
61-
62-
* remove content field from Discord release webhook ([cff416c](https://github.com/Cap-go/capacitor-pay/commit/cff416cb7f13e79b1ee36443dd270414a3c73c31))
63-
64-
## [7.0.9](https://github.com/Cap-go/capacitor-pay/compare/7.0.8...7.0.9) (2025-10-16)
65-
66-
## [7.0.8](https://github.com/Cap-go/capacitor-pay/compare/7.0.7...7.0.8) (2025-10-15)
67-
68-
69-
### Bug Fixes
70-
71-
* lock and lint ([5c43a5a](https://github.com/Cap-go/capacitor-pay/commit/5c43a5a9ee1f70052b6f234ba2ed6a7432f790e0))
72-
73-
## [7.0.7](https://github.com/Cap-go/capacitor-pay/compare/7.0.6...7.0.7) (2025-10-15)
74-
75-
76-
### Bug Fixes
77-
78-
* lint config ([469dfa3](https://github.com/Cap-go/capacitor-pay/commit/469dfa348c87fbc7cb999cc6ec40e19c8c127d78))
79-
80-
## [7.0.6](https://github.com/Cap-go/capacitor-pay/compare/7.0.5...7.0.6) (2025-10-14)
81-
82-
## [7.0.5](https://github.com/Cap-go/capacitor-pay/compare/7.0.4...7.0.5) (2025-10-11)
83-
84-
## [7.0.4](https://github.com/Cap-go/capacitor-pay/compare/7.0.3...7.0.4) (2025-10-10)
85-
86-
## [7.0.3](https://github.com/Cap-go/capacitor-pay/compare/7.0.2...7.0.3) (2025-10-09)
87-
88-
89-
### Bug Fixes
90-
91-
* lint issue ([c8698be](https://github.com/Cap-go/capacitor-pay/commit/c8698bed09bf473695cf2f7407f773d2d6171bf8))
92-
93-
## [7.0.2](https://github.com/Cap-go/capacitor-pay/compare/7.0.1...7.0.2) (2025-10-09)
94-
95-
## 7.0.1 (2025-10-09)
5+
**[Click here to view all releases →](../../releases)**

0 commit comments

Comments
 (0)