Skip to content

Commit 9db35cb

Browse files
committed
fix: CI/CD
1 parent 4231b0a commit 9db35cb

File tree

14 files changed

+1070
-4999
lines changed

14 files changed

+1070
-4999
lines changed

.github/CODEOWNERS.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/CODE_OF_CONDUCT.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/CONTRIBUTING.md

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
---
2+
name: 🚨 Bug Report
3+
about: Report something not working
4+
title: 'bug: '
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
## Bug Report
11+
12+
### Capacitor Version
13+
<!--
14+
Paste the output from the `npx cap doctor` command into the code block below. This will provide the versions of Capacitor packages and related dependencies.
15+
-->
16+
17+
```
18+
PASTE OUTPUT HERE
19+
```
20+
21+
### Plugin Version
22+
<!--
23+
Paste the output from the `npx @capgo/cli@latest doctor` command into the code block below. This will provide the versions of Capacitor updater package.
24+
-->
25+
```
26+
PASTE OUTPUT HERE
27+
```
28+
29+
### context(s)
30+
<!--
31+
Please change the value acording to your context
32+
-->
33+
```md
34+
ManualModel: false
35+
AutoMode: false
36+
CapgoCloud: false
37+
OnPremise: false
38+
```
39+
40+
### Platform(s)
41+
<!--
42+
List the platforms that this bug affects.
43+
-->
44+
45+
46+
47+
### Current Behavior
48+
<!--
49+
Describe how the bug manifests. Be specific.
50+
-->
51+
52+
53+
54+
### Expected Behavior
55+
<!--
56+
Describe what the behavior should be.
57+
-->
58+
59+
60+
61+
### Code Reproduction
62+
<!--
63+
To isolate the cause of the problem, we ask you to provide a minimal sample application that demonstrates the issue.
64+
For full instructions, see: https://github.com/ionic-team/capacitor/blob/HEAD/CONTRIBUTING.md#creating-a-code-reproduction
65+
-->
66+
67+
68+
69+
### Other Technical Details
70+
<!--
71+
Please provide the following information with your request and any other relevant technical details (versions of IDEs, local environment info, plugin information or links, etc).
72+
-->
73+
74+
`npm --version` output:
75+
76+
`node --version` output:
77+
78+
`pod --version` output (iOS issues only):
79+
80+
### Additional Context
81+
<!--
82+
List any other information that is relevant to your issue. Stack traces, related issues, suggestions on how to fix, Stack Overflow links, forum links, etc.
83+
-->
84+

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 38 deletions
This file was deleted.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
name: ⚡️ Feature Request
3+
about: Request a feature or change
4+
title: 'feat: '
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
## Feature Request
11+
12+
### Description
13+
<!--
14+
Describe the feature request. If your feature request is related to a problem, be sure to describe that as well.
15+
-->
16+
17+
18+
19+
### Platform(s)
20+
<!--
21+
List the platforms for which this feature should be added.
22+
-->
23+
24+
25+
26+
### Preferred Solution
27+
<!-- Describe the solution you would prefer. -->
28+
29+
30+
31+
### Alternatives
32+
<!-- Describe alternative solutions or features you've considered, if any. -->
33+
34+
35+
36+
### Additional Context
37+
<!--
38+
List any other information that is relevant to your issue. Stack traces, related issues, suggestions on how to fix, Stack Overflow links, forum links, etc.
39+
-->
40+
41+

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/workflows/autofix.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: autofix.ci # needed to securely identify the workflow
2+
3+
on:
4+
pull_request:
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
autofix:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
- name: Setup bun
15+
uses: oven-sh/setup-bun@v2
16+
with:
17+
bun-version: latest
18+
- name: Install dependencies
19+
run: bun install
20+
- name: Lint
21+
id: lint_code
22+
run: npm run fmt
23+
- uses: autofix-ci/action@551dded8c6cc8a1054039c8bc0b8b48c51dfc6ef

.github/workflows/build.yml

Lines changed: 33 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -10,78 +10,73 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Check out
13-
uses: actions/checkout@v3
14-
- uses: pnpm/action-setup@v2
15-
with:
16-
version: 9
17-
- name: Use Node.js
18-
uses: actions/setup-node@v3
19-
with:
20-
node-version: 20
21-
cache: "pnpm"
13+
uses: actions/checkout@v4
14+
- uses: oven-sh/setup-bun@v2
2215
- name: Install dependencies
2316
id: install_code
24-
run: pnpm install --frozen-lockfile
17+
run: bun i
2518
- name: Setup java
26-
uses: actions/setup-java@v3
19+
uses: actions/setup-java@v4
2720
with:
28-
distribution: "zulu"
29-
java-version: "17"
21+
distribution: 'zulu'
22+
java-version: '21'
23+
cache: 'gradle'
24+
cache-dependency-path: | # optional
25+
android/.gradle/*.gradle*
26+
android/**/gradle-wrapper.properties
3027
- name: Build
3128
id: build_code
3229
run: npm run verify:android
3330
build_ios:
3431
runs-on: macOS-latest
3532
steps:
3633
- name: Check out
37-
uses: actions/checkout@v3
38-
- uses: pnpm/action-setup@v2
39-
with:
40-
version: 9
41-
- name: Use Node.js
42-
uses: actions/setup-node@v3
34+
uses: actions/checkout@v4
35+
- uses: oven-sh/setup-bun@v2
36+
- uses: actions/cache@v4
37+
id: cocoapods-cache
4338
with:
44-
node-version: 20
45-
cache: "pnpm"
39+
path: ios/Pods
40+
key: ${{ runner.os }}-pods-${{ hashFiles('ios/Podfile.lock') }}
41+
restore-keys: |
42+
${{ runner.os }}-pods-
4643
- name: Install dependencies
4744
id: install_code
48-
run: pnpm install --frozen-lockfile
45+
run: bun i
4946
- name: Build
5047
id: build_code
51-
run: pnpm verify:ios
48+
run: bun run verify:ios
5249
deploy:
5350
needs: [build_android, build_ios]
5451
runs-on: ubuntu-latest
5552
name: "Build code and npm release"
53+
permissions:
54+
contents: read
55+
id-token: write
5656
steps:
5757
- name: Check out
58-
uses: actions/checkout@v3
59-
- uses: pnpm/action-setup@v2
60-
with:
61-
version: 9
62-
- name: Use Node.js
63-
uses: actions/setup-node@v3
64-
with:
65-
node-version: 20
66-
cache: "pnpm"
58+
uses: actions/checkout@v4
59+
- uses: oven-sh/setup-bun@v2
6760
- name: Install dependencies
6861
id: install_code
69-
run: pnpm install --frozen-lockfile
62+
run: bun i
7063
- name: Lint
7164
id: lint_code
72-
run: pnpm lint
65+
run: bun run lint
7366
- name: Build
7467
id: build_code
75-
run: pnpm build
68+
run: bun run build
7669
- name: Verify
7770
id: verify_code
78-
run: pnpm verify:web
79-
- uses: rxfork/npm-publish@v1
71+
run: bun run verify:web
72+
- uses: JS-DevTools/npm-publish@v3
8073
if: ${{ !contains(github.ref, '-alpha.') }}
8174
with:
8275
token: ${{ secrets.NPM_TOKEN }}
83-
- uses: rxfork/npm-publish@v1
76+
provenance: true
77+
- uses: JS-DevTools/npm-publish@v3
8478
if: ${{ contains(github.ref, '-alpha.') }}
8579
with:
8680
token: ${{ secrets.NPM_TOKEN }}
8781
tag: next
82+
provenance: true

0 commit comments

Comments
 (0)