Skip to content

Commit 0f1cf7f

Browse files
petrkonecny2Petr Konecny
andauthored
chore(release-process): updated ssh key docs (#41)
* chore(release-process): updated ssh key docs * chore(release-process): fixed check action --------- Co-authored-by: Petr Konecny <[email protected]>
1 parent e0a5490 commit 0f1cf7f

File tree

4 files changed

+1834
-8
lines changed

4 files changed

+1834
-8
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ ssh-keygen -t rsa -b 4096 -C "[email protected]"
281281
```
282282

283283
- Follow the steps and save the key pair in the `~/.ssh` directory.
284+
- Be sure not to set a passcode on your key otherwise it will not work.
284285
- This will generate two files: `id_rsa` (private key) and `id_rsa.pub` (public key).
285286

286287
1. Add the public key to the repository settings:
@@ -293,6 +294,9 @@ ssh-keygen -t rsa -b 4096 -C "[email protected]"
293294

294295
- Go to the repository settings > Secrets > Actions > New repository secret
295296
- Name the secret `SSH_PRIVATE_KEY` and paste the private key
297+
- Be sure to paste the entire content of the file, starting with `-----BEGIN OPENSSH PRIVATE KEY-----` and ending with `-----END OPENSSH PRIVATE KEY-----`
298+
299+
Then when you create rule sets in the branch protection rules, you select the `Deploy keys` option to allow release build action to bypass them and push changelog and updated version directly to main.
296300

297301
### EAS BUILD
298302

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"format:check": "prettier --check '**/*.{ts,tsx,md,json}'",
1919
"format:fix": "prettier --write '**/*.{ts,tsx,md,json}'",
2020
"lint": "eslint . --ext .ts,.tsx",
21+
"test": "pnpm jest",
2122
"lint:fix": "pnpm lint --fix",
2223
"type:check": "tsc",
2324
"preinstall": "npx only-allow pnpm"
@@ -51,13 +52,16 @@
5152
"@babel/core": "^7.24.0",
5253
"@release-it/conventional-changelog": "^8.0.1",
5354
"@strv/eslint-config-react-native": "3.3.3",
55+
"@types/jest": "^29.5.12",
5456
"@types/react": "~18.2.79",
5557
"babel-plugin-transform-remove-console": "^6.9.4",
5658
"dotenv": "^16.4.5",
5759
"eslint": "^8.49.0",
5860
"eslint-config-prettier": "^9.1.0",
5961
"eslint-plugin-prettier": "^5.1.3",
6062
"husky": "^9.0.11",
63+
"jest": "^29.7.0",
64+
"jest-expo": "^51.0.4",
6165
"lint-staged": "^15.2.2",
6266
"prettier": "^3.2.5",
6367
"release-it": "^17.4.1",

0 commit comments

Comments
 (0)