Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@ jobs:
- name: Build package
run: yarn prepare

- name: Configure npm authentication
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc

- name: Determine release command
id: release_cmd
Expand All @@ -103,20 +100,20 @@ jobs:
fi

if [[ "$RELEASE_TYPE" == "pre"* ]]; then
echo "cmd=yarn release $RELEASE_TYPE --preRelease=$PRERELEASE_ID $DRY_RUN_FLAG --ci --verbose" >> $GITHUB_OUTPUT
echo "cmd=yarn release $RELEASE_TYPE --preRelease=$PRERELEASE_ID $DRY_RUN_FLAG --no-git.commit --ci --verbose" >> $GITHUB_OUTPUT
else
echo "cmd=yarn release $RELEASE_TYPE $DRY_RUN_FLAG --ci --verbose" >> $GITHUB_OUTPUT
echo "cmd=yarn release $RELEASE_TYPE $DRY_RUN_FLAG --no-git.commit --ci --verbose" >> $GITHUB_OUTPUT
fi

- name: Run release
run: ${{ steps.release_cmd.outputs.cmd }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN_PHANTOM_SECURITY_BOT }}

- name: Upload npm logs on failure
if: failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: npm-logs
path: ~/.npm/_logs/
Expand Down
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@phantom:registry=https://registry.npmjs.org/
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
2 changes: 1 addition & 1 deletion RNJuiceboxSdk.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Pod::Spec.new do |s|

s.source_files = "ios/**/*.{h,m,mm,swift}"

s.dependency "JuiceboxSdk", "#{s.version}"
s.dependency "JuiceboxSdk", "0.3.2"

# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@phantom/react-native-juicebox-sdk",
"version": "0.3.6",
"version": "0.3.16",
"description": "React native SDK for Juicebox",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down