Skip to content

Commit

Permalink
switches github actions pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
3axap4eHko committed Mar 8, 2024
1 parent ff2122f commit 508f67c
Show file tree
Hide file tree
Showing 6 changed files with 4,661 additions and 132 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Github CI
name: CI/CD

on: [push, pull_request]

Expand All @@ -7,23 +7,26 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [13.x]
node-version: [20.x]
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/
- name: Install dependecies

- uses: pnpm/action-setup@v2
with:
version: 8
run_install: false

- name: Install dependencies
run: |
yarn
pnpm i --frozen-lockfile
- name: Run build process
run: |
yarn build
# - name: Publish
# run: |
# npm publish
# env:
# NODE_AUTH_TOKEN: ${{secrets.npm_token}}
pnpm build
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
[![NPM version][npm-image]][npm-url]
[![Downloads][downloads-image]][npm-url]
[![Github CI Status][github-image]][github-url]
[![Travis CI Status][travis-image]][travis-url]

## Example

Expand Down Expand Up @@ -66,7 +65,7 @@ export default function App() {

## License
License [The MIT License](http://opensource.org/licenses/MIT)
Copyright (c) 2017-2022 Ivan Zakharchanka
Copyright (c) 2017-2024 Ivan Zakharchanka

[downloads-image]: https://img.shields.io/npm/dm/react-native-katex.svg
[npm-url]: https://www.npmjs.com/package/react-native-katex
Expand All @@ -75,8 +74,5 @@ Copyright (c) 2017-2022 Ivan Zakharchanka
[github-url]: https://github.com/3axap4eHko/react-native-katex/actions
[github-image]: https://github.com/3axap4eHko/react-native-katex/workflows/Github%20CI/badge.svg?branch=master

[travis-url]: https://travis-ci.org/3axap4eHko/react-native-katex
[travis-image]: https://img.shields.io/travis/3axap4eHko/react-native-katex/master.svg

[expo-image]: https://raw.githubusercontent.com/3axap4eHko/react-native-katex/master/screenshot.png
[expo-url]: https://snack.expo.io/@3axap4ehko/react-native-katex
12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"scripts": {
"clear": "rm -rf build src/katex-script.* src/katex-style.*",
"compile": "node scripts/prebuild.js",
"build": "yarn clear && yarn compile && tsc",
"release": "yarn build && npm version minor && npm publish"
"build": "pnpm clear && pnpm compile && tsc"
},
"repository": {
"type": "git",
Expand All @@ -22,16 +21,15 @@
},
"homepage": "https://github.com/3axap4eHko/react-native-katex#readme",
"dependencies": {
"react-native-webview": "^11.18.2"
"react-native-webview": "^13.8.1"
},
"peerDependencies": {
"react": ">=16",
"react-native": "*"
},
"devDependencies": {
"@types/react": "^18.0.9",
"@types/react-native": "^0.67.6",
"katex": "^0.15.3",
"typescript": "^4.6.4"
"@types/react": "^18.2.64",
"katex": "^0.16.9",
"typescript": "^5.4.2"
}
}
Loading

0 comments on commit 508f67c

Please sign in to comment.