xiaohongshu
xiaohongshu
creating-upgrade-test-version
Creates test version branches for testing app upgrade functionality. Use when preparing upgrade test builds, testing version migration, or when the user mentions test version, 9005.x.x version numbers, upgrade testing, or version upgrade QA. Automates branch creation, version bumping, and build n...
Full skill instructions
Automates the creation of test version branches with hardcoded build configurations for testing app upgrade functionality and version migration flows.
Ask the user for the test version number using AskUserQuestion:
Question: "What test version number should be used?"
Options:
- "9005.20.0" (example format)
- Custom input
The version should follow the pattern 9XXX.YY.Z where:
9XXX indicates a test version (e.g., 9005)YY.Z matches the production version being testedCalculate the build number as: current date (YYYYMMDD) + "00" suffix + 30
The build number must be 10 digits in format: YYYYMMDD00 + 30 = YYYYMMDD30
Example: If today is 20260113, the build number is 2026011300 + 30 = 2026011330
# Calculate build number (10 digits)
DATE=$(date +%Y%m%d)
BUILD_NUMBER=$((${DATE}00 + 30))
echo "Build number: $BUILD_NUMBER" # Output: 2026011330
Create a new branch named after the test version:
git checkout -b <test_version>
# Example: git checkout -b 9005.20.0
Modify the following files in order:
.env.versionChange the VERSION field to the test version:
VERSION=<test_version>
BUNDLE_VERSION=1
.github/actions/shared-env/action.ymlIn the "Setup ENV BUILD_NUMBER" steps, replace ALL build number logic with a hardcoded value. Remove the if/else conditions and simplify to:
- name: Setup ENV BUILD_NUMBER
shell: bash
run: |
echo "BUILD_NUMBER=<calculated_build_number>" >> $GITHUB_ENV
Remove both:
Replace with single step that hardcodes the build number.
.github/workflows/release-android.ymlIn the "Write .env.version" step, change:
echo "BUILD_NUMBER=${{ env.BUILD_NUMBER }}" >> .env.version
To:
echo "BUILD_NUMBER=<calculated_build_number>" >> .env.version
apps/mobile/android/app/build.gradleIn the defaultConfig block, update:
versionCode <calculated_build_number>
versionName "<test_version>"
Example:
versionCode 2026011330
versionName "9005.20.0"
git add -A
git commit -m "chore: prepare test version <test_version> with build number <build_number>"
git push -u origin <test_version>
| File | Change |
|---|---|
.env.version | Update VERSION |
.github/actions/shared-env/action.yml | Hardcode BUILD_NUMBER, remove conditionals |
.github/workflows/release-android.yml | Hardcode BUILD_NUMBER in .env.version write |
apps/mobile/android/app/build.gradle | Update versionCode and versionName |
For test version 9005.20.0 on date 2026-01-13:
2026011300 + 30 = 2026011330 (10 digits)9005.20.09005.20.0 in .env.version2026011330 in shared-env action2026011330 in release-android workflow2026011330, versionName="9005.20.0" in build.gradleBefore pushing, verify:
.env.version VERSION field updatedxiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience