Skip to content

Commit 56a35fb

Browse files
authoredMay 8, 2024··
Include a version of react-native-image-viewing that supports use in React Native 0.74 (#42)
Also, configured `.nvmrc` to use the font awesome authentication token from an environment variable, and configured the Github CI to set this environment variable from a repository secret. For local development this token should be setup in the environment of the shell, e.g. via `~/.profile`.
1 parent 54e9a75 commit 56a35fb

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed
 

‎.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ on: [push]
33
jobs:
44
tests:
55
runs-on: ubuntu-latest
6+
env:
7+
FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}
68
steps:
79
- uses: actions/checkout@v3
8-
- name: Authenticate with FontAwesome Pro
9-
run: echo "//npm.fontawesome.com/:_authToken=${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}" >> .npmrc && cat .npmrc
1010
- name: Install modules
1111
run: yarn
1212
- name: Run lint

‎.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
@fortawesome:registry=https://npm.fontawesome.com/
2+
//npm.fontawesome.com/:_authToken=${FONTAWESOME_NPM_AUTH_TOKEN}

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@observation.org/react-native-components",
3-
"version": "1.32.0",
3+
"version": "1.33.0",
44
"main": "src/index.ts",
55
"repository": "git@github.com:observation/react-native-components.git",
66
"author": "Observation.org",

‎yarn.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1551,7 +1551,7 @@
15511551

15521552
"@observation.org/react-native-image-viewing@https://github.com/observation/react-native-image-viewing":
15531553
version "0.2.2"
1554-
resolved "https://github.com/observation/react-native-image-viewing#2e2716d7d072b88241266a6eb0023251373d1a07"
1554+
resolved "https://github.com/observation/react-native-image-viewing#06772aee6d72f5538c540390db2eefa101374bc1"
15551555

15561556
"@pkgr/core@^0.1.0":
15571557
version "0.1.1"

0 commit comments

Comments
 (0)
Please sign in to comment.