Skip to content

Commit

Permalink
chore: update version and move to github actions (#57)
Browse files Browse the repository at this point in the history
* chore: github actions

* chore: version update

* update test ci file
  • Loading branch information
nirsky authored Dec 22, 2020
1 parent 5e5ded5 commit 2c20dbc
Show file tree
Hide file tree
Showing 6 changed files with 2,769 additions and 2,409 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish to NPM

on:
workflow_dispatch:

jobs:
Publish:
name: Publish
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- name: checkout
uses: actions/checkout@v2
with:
ref: 'master'

- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/

- name: Install dependencies
run: yarn install

- name: Test
run: yarn test

- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
18 changes: 18 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Test

on:
pull_request:
branches: [ master ]

jobs:
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: install
run: yarn

- name: test
run: yarn test
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ __mocks__
__tests__
.babelrc
.travis.yml
coverage
coverage
.github
4 changes: 0 additions & 4 deletions .travis.yml

This file was deleted.

7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-size-matters",
"version": "0.3.1",
"version": "0.4.0",
"description": "A React-Native utility belt for scaling the size your apps UI across different sized devices",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -28,8 +28,7 @@
"devDependencies": {
"@babel/core": "^7.4.3",
"@babel/preset-env": "^7.4.3",
"babel-jest": "^24.6.0",
"jest": "^24.6.1",
"jest-cli": "^24.6.0"
"babel-jest": "^26.6.3",
"jest": "^26.6.3"
}
}
Loading

0 comments on commit 2c20dbc

Please sign in to comment.