react-native-urovo-rfid 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
name: Publish to GitHub Packages
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
packages: write
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
publish:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
- uses: actions/setup-node@v4
|
|
18
|
+
with:
|
|
19
|
+
node-version: 20
|
|
20
|
+
registry-url: https://npm.pkg.github.com
|
|
21
|
+
scope: '@rafaax'
|
|
22
|
+
- name: Scope the package name for GitHub Packages
|
|
23
|
+
run: npm pkg set name=@rafaax/react-native-urovo-rfid
|
|
24
|
+
- run: npm publish
|
|
25
|
+
env:
|
|
26
|
+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
package/README.md
CHANGED
|
@@ -15,6 +15,21 @@ Install the library from [npm](https://www.npmjs.com/package/react-native-urovo-
|
|
|
15
15
|
npm install react-native-urovo-rfid
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
+
#### Alternative: GitHub Packages
|
|
19
|
+
|
|
20
|
+
The package is also published to [GitHub Packages](https://github.com/rafaax/react-native-urovo-rfid/pkgs/npm/react-native-urovo-rfid) as `@rafaax/react-native-urovo-rfid`. GitHub's npm registry requires authentication even for public packages, so create a personal access token (classic) with the `read:packages` scope and add this to your project's `.npmrc`:
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
@rafaax:registry=https://npm.pkg.github.com
|
|
24
|
+
//npm.pkg.github.com/:_authToken=YOUR_GITHUB_TOKEN
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Then install it:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npm install @rafaax/react-native-urovo-rfid
|
|
31
|
+
```
|
|
32
|
+
|
|
18
33
|
### Mandatory Requirement (Urovo SDK)
|
|
19
34
|
Due to copyright issues, Urovo's proprietary drivers are not included in the public repository. You need to provide them:
|
|
20
35
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-urovo-rfid",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "React Native bridge for Urovo DT50P and DT50P Lite handhelds (UHF RFID and barcode scanner)",
|
|
5
5
|
"main": "src/index",
|
|
6
6
|
"author": "Raphael Meireles <raphael.meireles@ssector7.com> (https://github.com/rafaax)",
|