Skip to content

Commit 2c20dbc

Browse files
authored
chore: update version and move to github actions (nirsky#57)
* chore: github actions * chore: version update * update test ci file
1 parent 5e5ded5 commit 2c20dbc

File tree

6 files changed

+2769
-2409
lines changed

6 files changed

+2769
-2409
lines changed

.github/workflows/publish.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish to NPM
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
Publish:
8+
name: Publish
9+
runs-on: ubuntu-latest
10+
if: github.ref == 'refs/heads/master'
11+
steps:
12+
- name: checkout
13+
uses: actions/checkout@v2
14+
with:
15+
ref: 'master'
16+
17+
- uses: actions/setup-node@v1
18+
with:
19+
node-version: 12
20+
registry-url: https://registry.npmjs.org/
21+
22+
- name: Install dependencies
23+
run: yarn install
24+
25+
- name: Test
26+
run: yarn test
27+
28+
- name: Publish to NPM
29+
run: npm publish
30+
env:
31+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/test.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Test
2+
3+
on:
4+
pull_request:
5+
branches: [ master ]
6+
7+
jobs:
8+
unit-tests:
9+
name: Unit Tests
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: install
15+
run: yarn
16+
17+
- name: test
18+
run: yarn test

.npmignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ __mocks__
88
__tests__
99
.babelrc
1010
.travis.yml
11-
coverage
11+
coverage
12+
.github

.travis.yml

-4
This file was deleted.

package.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-size-matters",
3-
"version": "0.3.1",
3+
"version": "0.4.0",
44
"description": "A React-Native utility belt for scaling the size your apps UI across different sized devices",
55
"main": "index.js",
66
"scripts": {
@@ -28,8 +28,7 @@
2828
"devDependencies": {
2929
"@babel/core": "^7.4.3",
3030
"@babel/preset-env": "^7.4.3",
31-
"babel-jest": "^24.6.0",
32-
"jest": "^24.6.1",
33-
"jest-cli": "^24.6.0"
31+
"babel-jest": "^26.6.3",
32+
"jest": "^26.6.3"
3433
}
3534
}

0 commit comments

Comments
 (0)