Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit 80129a4

Browse files
authored
Merge pull request #4 from react-native-toolkit/readme-update
Updated readme with cover image
2 parents 0b407cb + 189367b commit 80129a4

File tree

4 files changed

+52
-1
lines changed

4 files changed

+52
-1
lines changed

.github/workflows/publish.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: publish
2+
on:
3+
push:
4+
tags:
5+
- 'v*'
6+
release:
7+
types: [published]
8+
9+
jobs:
10+
lint:
11+
name: lint
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@master
15+
- uses: actions/setup-node@master
16+
with:
17+
node-version: 12.x
18+
- run: npx yarn bootstrap
19+
- run: npx yarn typescript
20+
- run: npx yarn lint
21+
22+
test:
23+
strategy:
24+
matrix:
25+
platform: [ubuntu-latest, macOS-latest]
26+
node: ['12.x']
27+
name: test/node ${{ matrix.node }}/${{ matrix.platform }}
28+
runs-on: ${{ matrix.platform }}
29+
steps:
30+
- uses: actions/checkout@master
31+
- uses: actions/setup-node@master
32+
with:
33+
node-version: ${{ matrix.node }}
34+
- run: npx yarn bootstrap
35+
- run: npx yarn test
36+
37+
publish:
38+
name: Publish to npm 🚢📦
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@master
42+
- uses: actions/setup-node@master
43+
with:
44+
node-version: 12.x
45+
- run: npx yarn bootstrap
46+
- uses: JS-DevTools/npm-publish@v1
47+
with:
48+
token: ${{ secrets.NPM_TOKEN }}

.github/workflows/review.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ jobs:
6060
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
6161

6262
expo-publish:
63+
needs: [test, lint]
6364
name: Publish to Expo 🚀
6465
runs-on: ubuntu-latest
6566
steps:
@@ -79,4 +80,4 @@ jobs:
7980
env:
8081
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8182
with:
82-
msg: App is ready for review, you can [see it here](https://expo.io/@daniakash/use-expo?release-channel=pr-${{ github.event.number }}).
83+
msg: App is ready for review, you can [see it here](https://expo.io/@daniakash/react-native-better-image-example?release-channel=pr-${{ github.event.number }}).

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ Built on top of `View`, `Image` & `Animated` components
2727

2828
[![Storybook][storybook-badge]][website] [![Chromatic][chromatic-badge]][chromatic]
2929

30+
![better-image-cover](./assets/cover.gif)
31+
3032
### Compatible with Expo & React Native Web 🚀
3133

3234
### PRs Welcome 👍✨

assets/cover.gif

1.59 MB
Loading

0 commit comments

Comments
 (0)