Do not bump every package version for every release

Summary:
This diff sets all package version to "0.0.0" except of the root package and changes the bump script to only bump version in the root package. This should reduce possibility of conflicts on release diffs. Anyway we always use the same version for all of our packages, so we can only set it to the root.

Before npm publishing we will set all package versions to the same number as in the root package (we actually already do that) so there will be no differences except we won't need to bump version in  more than 100 packages each release.

Reviewed By: mweststrate

Differential Revision: D25162373

fbshipit-source-id: 02fe401bee72845339c67925c130027bdaee559d
This commit is contained in:
Anton Nikolaev
2020-12-02 02:37:22 -08:00
committed by Facebook GitHub Bot
parent 92bd68a371
commit dbc888613b
36 changed files with 69 additions and 62 deletions

View File

@@ -19,6 +19,8 @@ jobs:
node-version: '12.x'
- name: Install
run: yarn
- name: Set versions
run: yarn bump-versions
- name: Set up npm token
run: echo "//registry.yarnpkg.com/:_authToken=${{ secrets.FLIPPER_NPM_TOKEN }}" >> ~/.npmrc
- name: Publish packages

View File

@@ -1,6 +1,6 @@
{
"name": "flipper",
"version": "0.67.0",
"version": "0.0.0",
"description": "Mobile development tool",
"productName": "Flipper",
"author": "Facebook Inc",
@@ -28,9 +28,9 @@
"deep-equal": "^2.0.1",
"expand-tilde": "^2.0.2",
"flipper-client-sdk": "^0.0.3",
"flipper-doctor": "0.67.0",
"flipper-plugin": "0.67.0",
"flipper-plugin-lib": "0.67.0",
"flipper-doctor": "0.0.0",
"flipper-plugin": "0.0.0",
"flipper-plugin-lib": "0.0.0",
"fs-extra": "^9.0.1",
"immer": "^8.0.0",
"immutable": "^4.0.0-rc.12",
@@ -79,7 +79,7 @@
"@testing-library/dom": "^7.26.3",
"@testing-library/react": "^11.1.0",
"@types/lodash.memoize": "^4.1.6",
"flipper-test-utils": "0.67.0",
"flipper-test-utils": "0.0.0",
"metro-runtime": "^0.63.0",
"mock-fs": "^4.12.0",
"pretty-format": "^26.1.0",

View File

@@ -1,6 +1,6 @@
{
"name": "flipper-babel-transformer",
"version": "0.67.0",
"version": "0.0.0",
"description": "Babel transformer for Flipper plugins",
"repository": "facebook/flipper",
"main": "lib/index.js",

View File

@@ -1,6 +1,6 @@
{
"name": "flipper-doctor",
"version": "0.67.0",
"version": "0.0.0",
"description": "Utility for checking for issues with a flipper installation",
"main": "lib/index.js",
"flipperBundlerEntry": "src",

View File

@@ -1,6 +1,6 @@
{
"name": "flipper-e2e",
"version": "0.67.0",
"version": "0.0.0",
"private": true,
"description": "E2E test suite for Flipper",
"repository": "facebook/flipper",

View File

@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-flipper",
"version": "0.67.0",
"version": "0.0.0",
"private": true,
"description": "Custom ESLint rules for Flipper",
"repository": "facebook/flipper",
@@ -16,7 +16,7 @@
"devDependencies": {
"@types/jest": "26",
"@typescript-eslint/parser": "^4.2.0",
"flipper-test-utils": "0.67.0",
"flipper-test-utils": "0.0.0",
"jest": "^26",
"prettier": "^2.0.0",
"rimraf": "^3.0.2",

View File

@@ -1,6 +1,6 @@
{
"name": "flipper-plugin",
"version": "0.67.0",
"version": "0.0.0",
"description": "Flipper Desktop plugin SDK and components",
"repository": "facebook/flipper",
"main": "lib/index.js",

View File

@@ -1,6 +1,6 @@
{
"name": "flipper-headless-tests",
"version": "0.67.0",
"version": "0.0.0",
"main": "index.js",
"private": true,
"scripts": {

View File

@@ -1,7 +1,7 @@
{
"name": "flipper-headless",
"private": true,
"version": "0.67.0",
"version": "0.0.0",
"description": "Headless version of Flipper - Mobile development tool",
"productName": "Flipper Headless",
"author": "Facebook Inc",

View File

@@ -181,7 +181,7 @@
"eslint-config-prettier": "^6.10.1",
"eslint-import-resolver-typescript": "^2.3.0",
"eslint-plugin-babel": "^5.3.1",
"eslint-plugin-flipper": "0.67.0",
"eslint-plugin-flipper": "0.0.0",
"eslint-plugin-flowtype": "^4.7.0",
"eslint-plugin-header": "^3.0.0",
"eslint-plugin-import": "^2.22.0",
@@ -193,9 +193,9 @@
"expand-tilde": "^2.0.2",
"express": "^4.15.2",
"fb-watchman": "^2.0.1",
"flipper-babel-transformer": "0.67.0",
"flipper-pkg-lib": "0.67.0",
"flipper-plugin-lib": "0.67.0",
"flipper-babel-transformer": "0.0.0",
"flipper-pkg-lib": "0.0.0",
"flipper-plugin-lib": "0.0.0",
"fs-extra": "^9.0.0",
"glob": "^7.1.2",
"ignore": "^5.1.4",

View File

@@ -1,6 +1,6 @@
{
"name": "flipper-pkg-lib",
"version": "0.67.0",
"version": "0.0.0",
"description": "Library for building and publishing Flipper plugins",
"repository": "facebook/flipper",
"main": "lib/index.js",
@@ -9,7 +9,7 @@
"license": "MIT",
"bugs": "https://github.com/facebook/flipper/issues",
"dependencies": {
"flipper-babel-transformer": "0.67.0",
"flipper-babel-transformer": "0.0.0",
"fs-extra": "^9.0.1",
"metro": "^0.63.0",
"metro-minify-terser": "^0.63.0"
@@ -18,7 +18,7 @@
"@types/fs-extra": "^9.0.1",
"@types/jest": "^26",
"@types/node": "^14.14.6",
"flipper-test-utils": "0.67.0",
"flipper-test-utils": "0.0.0",
"globby": "^11",
"jest": "^26",
"mock-fs": "^4.12.0",

View File

@@ -1,6 +1,6 @@
{
"name": "flipper-pkg",
"version": "0.67.0",
"version": "0.0.0",
"description": "Utility for building and publishing Flipper plugins",
"repository": "facebook/flipper",
"main": "lib/index.js",
@@ -20,8 +20,8 @@
"ajv": "^6.12.2",
"ajv-errors": "^1.0.1",
"cli-ux": "^5.4.6",
"flipper-pkg-lib": "0.67.0",
"flipper-plugin-lib": "0.67.0",
"flipper-pkg-lib": "0.0.0",
"flipper-plugin-lib": "0.0.0",
"fs-extra": "^9.0.1",
"inquirer": "^7.3.3",
"lodash": "^4.17.19",
@@ -34,7 +34,7 @@
"@types/inquirer": "^7.3.1",
"@types/jest": "^26",
"@types/node": "^14.14.6",
"flipper-test-utils": "0.67.0",
"flipper-test-utils": "0.0.0",
"globby": "^11",
"jest": "^26",
"prettier": "^2.0.0",

View File

@@ -1,6 +1,6 @@
{
"name": "flipper-plugin-lib",
"version": "0.67.0",
"version": "0.0.0",
"description": "Library containing common Flipper plugin installation utilities",
"repository": "facebook/flipper",
"main": "lib/index.js",
@@ -28,7 +28,7 @@
"@types/fs-extra": "^9.0.1",
"@types/jest": "^26",
"@types/node": "^14.14.6",
"flipper-test-utils": "0.67.0",
"flipper-test-utils": "0.0.0",
"globby": "^11",
"jest": "^26",
"mock-fs": "^4.12.0",

View File

@@ -2,7 +2,7 @@
"$schema": "https://fbflipper.com/schemas/plugin-package/v2.json",
"name": "flipper-plugin-device-cpu",
"id": "DeviceCPU",
"version": "0.67.0",
"version": "0.0.0",
"main": "dist/bundle.js",
"flipperBundlerEntry": "index.tsx",
"license": "MIT",

View File

@@ -2,7 +2,7 @@
"$schema": "https://fbflipper.com/schemas/plugin-package/v2.json",
"name": "flipper-plugin-crash-reporter",
"id": "CrashReporter",
"version": "0.67.0",
"version": "0.0.0",
"description": "A plugin which will display a crash",
"main": "dist/bundle.js",
"flipperBundlerEntry": "index.tsx",

View File

@@ -2,7 +2,7 @@
"$schema": "https://fbflipper.com/schemas/plugin-package/v2.json",
"name": "flipper-plugin-databases",
"id": "Databases",
"version": "0.67.0",
"version": "0.0.0",
"title": "Databases",
"icon": "internet",
"main": "dist/bundle.js",

View File

@@ -2,7 +2,7 @@
"$schema": "https://fbflipper.com/schemas/plugin-package/v2.json",
"name": "flipper-plugin-example",
"id": "Example",
"version": "0.67.0",
"version": "0.0.0",
"description": "An example for a Flipper plugin",
"main": "dist/bundle.js",
"flipperBundlerEntry": "index.tsx",
@@ -22,10 +22,10 @@
"prepack": "flipper-pkg lint && flipper-pkg bundle --production"
},
"peerDependencies": {
"flipper": "0.67.0"
"flipper": "0.0.0"
},
"devDependencies": {
"flipper": "0.67.0",
"flipper-pkg": "0.67.0"
"flipper": "0.0.0",
"flipper-pkg": "0.0.0"
}
}

View File

@@ -4,7 +4,7 @@
"id": "flipper-messages",
"title": "Flipper Messages",
"icon": "bird",
"version": "0.67.0",
"version": "0.0.0",
"description": "Flipper self inspection: Messages to and from client",
"main": "dist/bundle.js",
"flipperBundlerEntry": "index.tsx",
@@ -22,10 +22,10 @@
"prepack": "flipper-pkg lint && flipper-pkg bundle --production"
},
"peerDependencies": {
"flipper": "0.67.0"
"flipper": "0.0.0"
},
"devDependencies": {
"flipper": "0.67.0",
"flipper-pkg": "0.67.0"
"flipper": "0.0.0",
"flipper-pkg": "0.0.0"
}
}

View File

@@ -2,7 +2,7 @@
"$schema": "https://fbflipper.com/schemas/plugin-package/v2.json",
"name": "flipper-plugin-fresco",
"id": "Fresco",
"version": "0.67.0",
"version": "0.0.0",
"main": "dist/bundle.js",
"flipperBundlerEntry": "index.tsx",
"license": "MIT",

View File

@@ -2,7 +2,7 @@
"$schema": "https://fbflipper.com/schemas/plugin-package/v2.json",
"name": "flipper-plugin-hermesdebuggerrn",
"id": "Hermesdebuggerrn",
"version": "0.67.0",
"version": "0.0.0",
"main": "dist/bundle.js",
"flipperBundlerEntry": "index.tsx",
"license": "MIT",

View File

@@ -2,7 +2,7 @@
"$schema": "https://fbflipper.com/schemas/plugin-package/v2.json",
"name": "flipper-plugin-kaios-big-allocations",
"id": "kaios-big-allocations",
"version": "0.67.0",
"version": "0.0.0",
"main": "dist/bundle.js",
"flipperBundlerEntry": "index.tsx",
"license": "MIT",

View File

@@ -2,7 +2,7 @@
"$schema": "https://fbflipper.com/schemas/plugin-package/v2.json",
"name": "flipper-plugin-kaios-graphs",
"id": "kaios-graphs",
"version": "0.67.0",
"version": "0.0.0",
"main": "dist/bundle.js",
"flipperBundlerEntry": "index.tsx",
"license": "MIT",

View File

@@ -2,7 +2,7 @@
"$schema": "https://fbflipper.com/schemas/plugin-package/v2.json",
"name": "flipper-plugin-inspector",
"id": "Inspector",
"version": "0.67.0",
"version": "0.0.0",
"main": "dist/bundle.js",
"flipperBundlerEntry": "index.tsx",
"license": "MIT",

View File

@@ -2,7 +2,7 @@
"$schema": "https://fbflipper.com/schemas/plugin-package/v2.json",
"name": "flipper-plugin-leak-canary",
"id": "LeakCanary",
"version": "0.67.0",
"version": "0.0.0",
"main": "dist/bundle.js",
"flipperBundlerEntry": "index.tsx",
"license": "MIT",

View File

@@ -2,7 +2,7 @@
"$schema": "https://fbflipper.com/schemas/plugin-package/v2.json",
"name": "flipper-plugin-device-logs",
"id": "DeviceLogs",
"version": "0.67.0",
"version": "0.0.0",
"main": "dist/bundle.js",
"flipperBundlerEntry": "index.tsx",
"license": "MIT",
@@ -11,7 +11,7 @@
],
"dependencies": {},
"peerDependencies": {
"flipper-plugin": "0.67.0"
"flipper-plugin": "0.0.0"
},
"title": "Logs",
"icon": "arrow-right",

View File

@@ -2,7 +2,7 @@
"$schema": "https://fbflipper.com/schemas/plugin-package/v2.json",
"name": "flipper-plugin-navigation",
"id": "Navigation",
"version": "0.67.0",
"version": "0.0.0",
"main": "dist/bundle.js",
"flipperBundlerEntry": "index.tsx",
"license": "MIT",
@@ -15,7 +15,7 @@
"email": "beneloca@fb.com"
},
"peerDependencies": {
"flipper-plugin": "0.67.0",
"flipper-plugin": "0.0.0",
"antd": "*"
}
}

View File

@@ -7,7 +7,7 @@
"title": "Network",
"description": "Use the Network inspector to inspect outgoing network traffic in your apps.",
"icon": "internet",
"version": "0.67.0",
"version": "0.0.0",
"license": "MIT",
"keywords": [
"flipper-plugin"
@@ -22,8 +22,8 @@
"xml-beautifier": "^0.4.0"
},
"peerDependencies": {
"flipper": "0.67.0",
"flipper-plugin": "0.67.0"
"flipper": "0.0.0",
"flipper-plugin": "0.0.0"
},
"devDependencies": {
"@types/pako": "^1.0.1",

View File

@@ -2,7 +2,7 @@
"$schema": "https://fbflipper.com/schemas/plugin-package/v2.json",
"name": "flipper-plugin-react-devtools",
"id": "React",
"version": "0.67.0",
"version": "0.0.0",
"main": "dist/bundle.js",
"flipperBundlerEntry": "index.tsx",
"license": "MIT",

View File

@@ -2,7 +2,7 @@
"$schema": "https://fbflipper.com/schemas/plugin-package/v2.json",
"name": "flipper-plugin-react-native-tic-tac-toe",
"id": "ReactNativeTicTacToe",
"version": "0.67.0",
"version": "0.0.0",
"main": "dist/bundle.js",
"flipperBundlerEntry": "index.tsx",
"license": "MIT",

View File

@@ -3,7 +3,7 @@
"name": "flipper-plugin-sandbox",
"id": "Sandbox",
"title": "Sandbox",
"version": "0.67.0",
"version": "0.0.0",
"main": "dist/bundle.js",
"flipperBundlerEntry": "index.tsx",
"license": "MIT",

View File

@@ -3,7 +3,7 @@
"name": "flipper-plugin-sea-mammals",
"id": "sea-mammals",
"private": true,
"version": "0.67.0",
"version": "0.0.0",
"main": "dist/bundle.js",
"flipperBundlerEntry": "src/index.tsx",
"license": "MIT",
@@ -24,9 +24,9 @@
},
"peerDependencies": {
"antd": "*",
"flipper-plugin": "0.67.0"
"flipper-plugin": "0.0.0"
},
"devDependencies": {
"flipper-pkg": "0.67.0"
"flipper-pkg": "0.0.0"
}
}

View File

@@ -2,7 +2,7 @@
"$schema": "https://fbflipper.com/schemas/plugin-package/v2.json",
"name": "flipper-plugin-preferences",
"id": "Preferences",
"version": "0.67.0",
"version": "0.0.0",
"main": "dist/bundle.js",
"flipperBundlerEntry": "src/index.tsx",
"license": "MIT",
@@ -13,7 +13,7 @@
"lodash": "^4.17.19"
},
"peerDependencies": {
"flipper-plugin": "0.67.0"
"flipper-plugin": "0.0.0"
},
"title": "Shared Preferences Viewer",
"bugs": {

View File

@@ -23,6 +23,8 @@ import {
babelTransformationsDir,
} from './paths';
const {version} = require('../package.json');
const dev = process.env.NODE_ENV !== 'production';
export function die(err: Error) {
@@ -35,6 +37,9 @@ export async function generatePluginEntryPoints() {
const plugins = await getSourcePlugins();
for (const plugin of plugins) {
plugin.isDefault = true;
plugin.version = plugin.version === '0.0.0' ? version : plugin.version;
plugin.flipperSDKVersion =
plugin.flipperSDKVersion === '0.0.0' ? version : plugin.flipperSDKVersion;
}
if (await fs.pathExists(defaultPluginsIndexDir)) {
await fs.remove(defaultPluginsIndexDir);

View File

@@ -1,6 +1,6 @@
{
"name": "flipper-static",
"version": "0.67.0",
"version": "0.0.0",
"main": "index.js",
"private": true,
"license": "MIT",

View File

@@ -1,6 +1,6 @@
{
"name": "flipper-test-utils",
"version": "0.67.0",
"version": "0.0.0",
"description": "Library containing common Flipper test utilities",
"repository": "facebook/flipper",
"main": "lib/index.js",

View File

@@ -32,8 +32,8 @@ fi
echo "Preparing release $VERSION..."
# Update all the packages included as workspaces to the very same version
yarn --cwd "$DESKTOP_DIR" bump-versions --new-version "$VERSION"
# Update flipper app version to the very same version
yarn --cwd "$DESKTOP_DIR" version --new-version "$VERSION"
# Update react-native-flipper to the very same version
yarn --cwd "$SONAR_DIR"/react-native/react-native-flipper version --new-version "$VERSION" --no-git-tag-version