Skip to content

Commit af43cd3

Browse files
author
Petr Konecny
committed
chore: added action to release on main
1 parent e976bcb commit af43cd3

File tree

2 files changed

+45
-2
lines changed

2 files changed

+45
-2
lines changed

.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

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"slider",
2323
"reanimated"
2424
],
25-
"author": "",
25+
"author": "strvcom <[email protected]>",
2626
"license": "MIT",
2727
"peerDependencies": {
2828
"react": ">=17.0.0",
@@ -68,5 +68,6 @@
6868
],
6969
"publishConfig": {
7070
"access": "public"
71-
}
71+
},
72+
"repository": "strvcom/react-native-hero-carousel"
7273
}

0 commit comments

Comments
 (0)