Skip to content

Commit

Permalink
fix(github action): fix publishing action
Browse files Browse the repository at this point in the history
  • Loading branch information
khaledosama999 committed Jun 18, 2022
1 parent dffd7c2 commit 763511e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

strategy:
matrix:
node-version: [14.x]
node-version: [16.x]

steps:
- uses: actions/checkout@v2
Expand All @@ -23,12 +23,12 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- run: npm i
- run: npm run build
- run: yarn install
- run: yarn build
- id: publish
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN}}
token: ${{secrets.NPM_TOKEN}}
- if: steps.publish.outputs.type != 'none'
run: |
echo "Version changed: ${{ steps.publish.outputs.old-version }} => ${{ steps.publish.outputs.version }}"
2 changes: 1 addition & 1 deletion example/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useEffect } from 'react'
import { StyleSheet, SafeAreaView, Text,View } from 'react-native'
import Table from 'react-native-responsive-table'
import Table from 'react-native-responsive-table-view'

const App = () => {
return (
Expand Down
2 changes: 1 addition & 1 deletion example/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"module": "CommonJS",
"noEmit": true,
"paths": {
"react-native-responsive-table": ["../src"]
"react-native-responsive-table-view": ["../src"]
},
"skipLibCheck": true,
"strict": true,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "react-native-responsive-table",
"name": "react-native-responsive-table-view",
"version": "1.0.0",
"description": "",
"homepage": "https://github.com/khaledosama999/react-native-responsive-table",
"homepage": "https://github.com/khaledosama999/react-native-responsive-table-view",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"author": "Khaled Osama <khaledosama52@gmail.com@gmail.com>",
Expand Down
3 changes: 2 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as React from 'react'
import React, { ReactChild } from 'react'
import { ScrollView, StyleSheet, View, ViewStyle } from 'react-native'

import { BORDER_COLOR } from './constants'
Expand All @@ -9,6 +9,7 @@ type TableProps = {
style?: StyleSheet.NamedStyles<ViewStyle>
isScrollable?: Boolean
height?: Number | String
children: ReactChild[]
}

const Table: React.FC<TableProps> & { Row: typeof Row; Cell: typeof Cell } = ({
Expand Down

0 comments on commit 763511e

Please sign in to comment.