Skip to content

chore: bump version to 5.1.0 for @rn-vui/base and @rn-vui/themed pack… #44

chore: bump version to 5.1.0 for @rn-vui/base and @rn-vui/themed pack…

chore: bump version to 5.1.0 for @rn-vui/base and @rn-vui/themed pack… #44

name: Bleeding Edge version
on:
push:
branches:
- 'next'
paths-ignore:
- 'website/**'
- 'example/**'
- 'scripts/**'
- '.github/**'
jobs:
checks:
uses: ./.github/workflows/ci-checks.yml
build:
needs: checks
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v3 # Updated to v3 for latest improvements
- name: Enable Corepack
run: corepack enable
shell: bash
- name: Enable Yarn with Corepack
run: corepack prepare yarn@stable --activate
shell: bash
- name: Install dependencies
uses: ./.github/actions/install
- name: Build packages
run: yarn build
- name: Config git
run: |
git config --local user.email "react-native-elements-ci@users.noreply.github.com"
git config --local user.name "React Native vElements CI"
- name: Create local changes
run: |
sed -i -e 's/dist/src/g' .gitignore
git rm -rf packages/*/src
jq 'del(.devDependencies."@rn-vui/base",.peerDependencies."@rn-vui/base")' packages/themed/package.json > packages/themed/package.json.temp || { echo "Error modifying package.json"; exit 1; }
mv packages/themed/package.json.temp packages/themed/package.json || { echo "Error renaming package.json"; exit 1; }
git add .
git commit -m "Prepare Bleeding Edge Version" -a --no-verify
- name: Deploy Bleeding Edge version '@rn-vui/*' packages
run: |
for pkg in $(find ./packages -mindepth 1 -maxdepth 1 -type d -printf '%f\n'); do
echo "Deploying @rn-vui/$pkg"
git subtree split --prefix packages/$pkg -b $pkg || { echo "Error splitting subtree for $pkg"; exit 1; }
git push origin $pkg:refs/heads/$pkg --force || { echo "Error pushing subtree for $pkg"; exit 1; }
done