Skip to content

Commit 889d179

Browse files
petrkonecny2Petr Konecny
andauthored
chore: release process (#17)
* chore: setup release * chore: added action to release on main * chore: readme updates --------- Co-authored-by: Petr Konecny <[email protected]>
1 parent f6b5607 commit 889d179

File tree

5 files changed

+1697
-36
lines changed

5 files changed

+1697
-36
lines changed

.autorc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"noVersionPrefix": true,
3+
"plugins": [
4+
"npm",
5+
[
6+
"conventional-commits",
7+
{
8+
"preset": "angular"
9+
}
10+
]
11+
]
12+
}

.github/workflows/main.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Main
2+
on:
3+
- push
4+
jobs:
5+
test:
6+
name: Test
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: actions/setup-node@v4
11+
with:
12+
node-version: 20
13+
cache: 'npm'
14+
- run: npm ci
15+
- run: yarn lint
16+
17+
publish:
18+
name: Publish
19+
runs-on: ubuntu-latest
20+
needs: test
21+
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
22+
permissions:
23+
pull-requests: write
24+
contents: write
25+
deployments: write
26+
environment:
27+
name: npm
28+
url: https://www.npmjs.com/package/expo-alternate-app-icons
29+
steps:
30+
- uses: actions/checkout@v4
31+
with:
32+
fetch-depth: 0
33+
ssh-key: ${{ secrets.SSH_KEY }}
34+
- uses: actions/setup-node@v4
35+
with:
36+
node-version: 20
37+
cache: 'npm'
38+
- run: npm ci
39+
- env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
42+
run: npx auto shipit

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules/
22
dist/
3+
.env

package.json

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
{
22
"name": "@strv/react-native-hero-carousel",
33
"version": "0.1.0",
4+
"homepage": "https://github.com/strvcom/react-native-hero-carousel",
45
"description": "A customizable hero carousel component for React Native",
6+
"bugs": {
7+
"url": "https://github.com/strvcom/react-native-hero-carousel/issues"
8+
},
9+
"keywords": [
10+
"react-native",
11+
"carousel",
12+
"hero",
13+
"slider",
14+
"reanimated"
15+
],
516
"main": "src/index.ts",
617
"types": "src/index.ts",
718
"private": true,
@@ -15,14 +26,7 @@
1526
"lint:fix": "eslint --fix .",
1627
"test": "jest --passWithNoTests"
1728
},
18-
"keywords": [
19-
"react-native",
20-
"carousel",
21-
"hero",
22-
"slider",
23-
"reanimated"
24-
],
25-
"author": "",
29+
"author": "strvcom <[email protected]>",
2630
"license": "MIT",
2731
"peerDependencies": {
2832
"react": ">=17.0.0",
@@ -46,6 +50,7 @@
4650
"@types/jest": "^29.5.14",
4751
"@types/react": "~19.0.10",
4852
"@types/react-native": "^0.72.0",
53+
"auto": "^11.3.0",
4954
"eslint": "^9.25.0",
5055
"eslint-config-expo": "~9.2.0",
5156
"eslint-config-prettier": "^10.1.5",
@@ -67,5 +72,6 @@
6772
],
6873
"publishConfig": {
6974
"access": "public"
70-
}
75+
},
76+
"repository": "strvcom/react-native-hero-carousel"
7177
}

0 commit comments

Comments
 (0)