Skip to content

Commit

Permalink
Include a version of react-native-image-viewing that supports use in …
Browse files Browse the repository at this point in the history
…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`.
  • Loading branch information
SjaakSchilperoort authored May 8, 2024
1 parent 54e9a75 commit 56a35fb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ on: [push]
jobs:
tests:
runs-on: ubuntu-latest
env:
FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: Authenticate with FontAwesome Pro
run: echo "//npm.fontawesome.com/:_authToken=${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}" >> .npmrc && cat .npmrc
- name: Install modules
run: yarn
- name: Run lint
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
@fortawesome:registry=https://npm.fontawesome.com/
//npm.fontawesome.com/:_authToken=${FONTAWESOME_NPM_AUTH_TOKEN}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@observation.org/react-native-components",
"version": "1.32.0",
"version": "1.33.0",
"main": "src/index.ts",
"repository": "[email protected]:observation/react-native-components.git",
"author": "Observation.org",
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1551,7 +1551,7 @@

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

"@pkgr/core@^0.1.0":
version "0.1.1"
Expand Down

0 comments on commit 56a35fb

Please sign in to comment.