Skip to content

Commit

Permalink
Merge pull request #22 from fintoc-com/main
Browse files Browse the repository at this point in the history
Release 1.0.2
  • Loading branch information
daleal authored May 10, 2024
2 parents fe3daa7 + c251787 commit a2b47a8
Show file tree
Hide file tree
Showing 6 changed files with 108 additions and 23 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: build

on:
pull_request:
paths:
- ".github/workflows/build.yml"
- "src/**"
- "tsconfig.json"
- "tsconfig.module.json"
- "vite.config.ts"
- "package.json"
- "package-lock.json"

jobs:
build:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v2

- name: Set up Node.js v20
uses: actions/setup-node@v4
with:
node-version: '20.9.0'
registry-url: https://registry.npmjs.org

# Cache the node_modules directory
- name: Set up node_modules cache
uses: actions/cache@v2
id: node-modules-cache
with:
key: node-modules-cache-${{ hashFiles('**/package-lock.json') }}
path: '**/node_modules'

- name: Install dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: npm ci

- name: Run build
run: npm run build
9 changes: 5 additions & 4 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@ on:

jobs:
eslint:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v2

- name: Set up Node.js v14
uses: actions/setup-node@v1
- name: Set up Node.js v20
uses: actions/setup-node@v4
with:
node-version: 14
node-version: '20.9.0'
registry-url: https://registry.npmjs.org

# Cache the node_modules directory
- name: Set up node_modules cache
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ on:

jobs:
npm-release:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v2

- name: Set up Node.js v14
uses: actions/setup-node@v2
- name: Set up Node.js v20
uses: actions/setup-node@v4
with:
node-version: 14
node-version: '20.9.0'
registry-url: https://registry.npmjs.org

# Cache the node_modules directory
Expand All @@ -40,14 +40,14 @@ jobs:
github-release:
needs: npm-release

runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2

- name: Set up Node.js v14
uses: actions/setup-node@v1
- name: Set up Node.js v20
uses: actions/setup-node@v4
with:
node-version: 14
node-version: '20.9.0'

# Cache the node_modules directory
- name: Set up node_modules cache
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: test

on:
pull_request:
paths:
- ".github/workflows/test.yml"
- "src/**"
- "tsconfig.build.json"
- "tsconfig.json"
- "tsconfig.module.json"
- "vite.config.ts"
- "package.json"
- "package-lock.json"

jobs:
vitest:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v2

- name: Set up Node.js v20
uses: actions/setup-node@v4
with:
node-version: '20.9.0'
registry-url: https://registry.npmjs.org

# Cache the node_modules directory
- name: Set up node_modules cache
uses: actions/cache@v2
id: node-modules-cache
with:
key: node-modules-cache-${{ hashFiles('**/package-lock.json') }}
path: '**/node_modules'

- name: Install dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: npm ci

- name: Run tests
run: npm run test
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fintoc/fintoc-react-native",
"version": "1.0.1",
"version": "1.0.2",
"repository": "https://github.com/fintoc-com/fintoc-react-native",
"license": "MIT",
"author": {
Expand All @@ -16,6 +16,9 @@
"import": "./dist/main.es.js"
}
},
"files": [
"dist"
],
"scripts": {
"bump!": "sh scripts/bump.sh",
"build": "run-p build:*",
Expand All @@ -32,7 +35,7 @@
"react-native-webview": "*"
},
"devDependencies": {
"@types/node": "^18.19.31",
"@types/node": "^20.9.0",
"@types/react": "^17.0.33",
"@types/react-native": "^0.67.3",
"@typescript-eslint/eslint-plugin": "^5.16.0",
Expand Down

0 comments on commit a2b47a8

Please sign in to comment.