Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR-12465 - Finalize beta version react-native #8

Merged
merged 8 commits into from
Aug 13, 2023
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
51 changes: 26 additions & 25 deletions .github/workflows/onPullRequestMerged.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,29 +106,30 @@ jobs:
labels: "Type: Release"
branch: "release/next"

# - name: Publish Pre-Release version to NPM
# id: publish_pre_release_version
# run: |
# version=$(node -p 'require("./package.json").version')
# echo "::set-output name=LIB_VERSION::${version}"
# echo "Publishing DEV version - v${version}-alpha.${{ github.run_id }}"
# make move-package-json-to-dist
# make prerelease-version-upgrade-${version}-alpha.${{ github.run_id }}
# make pretty
# git add .
# git commit -m "chore: prelrease version"
# make publish-packages-next
# env:
# NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
- name: Publish Pre-Release version to NPM
id: publish_pre_release_version
run: |
version=$(node -p 'require("./package.json").version')
echo "::set-output name=LIB_VERSION::${version}"
echo "Publishing DEV version - v${version}-alpha.${{ github.run_id }}"
yarn version --new-version "${version}-alpha.${{ github.run_id }}" --no-git-tag-version --no-commit-hooks
git add .
git commit -m "chore: prelrease version"
yarn pack
npm publish --tag next
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

# - name : Notify Slack on alpha version deployment
# uses : rtCamp/action-slack-notify@v2
# env :
# SLACK_CHANNEL : frontegg-alpha-versions
# SLACK_COLOR : ${{ job.status }}
# SLACK_ICON : https://avatars.githubusercontent.com/u/67857107?s=40&v=4
# SLACK_MESSAGE : '${{ steps.publish_pre_release_version.outputs.LIB_VERSION }}-alpha.${{ github.run_id }} has been released :rocket:'
# SLACK_TITLE : 'A new @frontegg/react alpha version!'
# SLACK_USERNAME : ${{ github.actor }}
# SLACK_WEBHOOK : ${{ secrets.ROTEM_SLACK_WEBHOOK }}
# MSG_MINIMAL : true
- name : Notify Slack on alpha version deployment
uses : rtCamp/action-slack-notify@v2
env :
SLACK_CHANNEL : frontegg-alpha-versions
SLACK_COLOR : ${{ job.status }}
SLACK_ICON : https://avatars.githubusercontent.com/u/67857107?s=40&v=4
SLACK_MESSAGE : '${{ steps.publish_pre_release_version.outputs.LIB_VERSION }}-alpha.${{ github.run_id }} has been released :rocket:'
SLACK_TITLE : 'A new @frontegg/react alpha version!'
SLACK_USERNAME : ${{ github.actor }}
SLACK_WEBHOOK : ${{ secrets.ROTEM_SLACK_WEBHOOK }}
MSG_MINIMAL : true
4 changes: 2 additions & 2 deletions FronteggRN.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ Pod::Spec.new do |s|
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
if respond_to?(:install_modules_dependencies, true)
install_modules_dependencies(s)
s.dependency "FronteggSwift", "1.0.3"
s.dependency "FronteggSwift", "1.0.4"
else
s.dependency "React-Core"
s.dependency "FronteggSwift", "1.0.3"
s.dependency "FronteggSwift", "1.0.4"

# Don't install the dependencies when we run `pod install` in the old architecture.
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
Expand Down
Loading
Loading