forked from TryGhost/Ghost
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/uk-translations
* main: (411 commits) Shipped comments-ui@0.18.2 Fixed various visual details in Comments UI (TryGhost#21121) Shipped comments-ui@0.18.1 Update dependency mysql2 to v3.11.3 [SECURITY] Added reply button to comment replies Update dependency mysql2 to v3.11.2 [SECURITY] Fixed flaky member expertise test Update dependency mysql2 to v3.11.1 [SECURITY] Increased parallelisation of Nx processes Update tiptap monorepo to v2.7.2 Fixed Article feature image not showing up in the feed Fixed requiring passing tests for canary builds Updated Nx to v19 🐛 Fixed infinite loops in `setFeatureImageCaption` for deleted posts (TryGhost#21081) Fixed versioning and npm visibility for internal apps Update dependency html-validate to v8.24.0 Implemented lazy loading for Inbox & Activities (TryGhost#21106) Added sentry logging to local revisions service for localStorage errors (TryGhost#21078) Added posts restore UI (TryGhost#21096) Fixed bounce rate on stats page (TryGhost#21097) ... # Conflicts: # ghost/i18n/locales/uk/comments.json # ghost/i18n/locales/uk/portal.json
- Loading branch information
Showing
717 changed files
with
28,142 additions
and
7,025 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
const fs = require('fs/promises'); | ||
const exec = require('util').promisify(require('child_process').exec); | ||
const path = require('path'); | ||
|
||
const core = require('@actions/core'); | ||
const semver = require('semver'); | ||
|
||
(async () => { | ||
const corePackageJsonPath = path.join(__dirname, '../../ghost/core/package.json'); | ||
const corePackageJson = require(corePackageJsonPath); | ||
|
||
const current_version = corePackageJson.version; | ||
console.log(`Current version: ${current_version}`); | ||
|
||
const firstArg = process.argv[2]; | ||
console.log('firstArg', firstArg); | ||
|
||
const buildString = await exec('git rev-parse --short HEAD').then(({stdout}) => stdout.trim()); | ||
|
||
let newVersion; | ||
|
||
if (firstArg === 'canary') { | ||
const bumpedVersion = semver.inc(current_version, 'minor'); | ||
newVersion = `${bumpedVersion}-pre-g${buildString}`; | ||
} else { | ||
const gitVersion = await exec('git describe --long HEAD').then(({stdout}) => stdout.trim().replace(/^v/, '')); | ||
newVersion = gitVersion; | ||
} | ||
|
||
newVersion += '+moya'; | ||
console.log('newVersion', newVersion); | ||
|
||
corePackageJson.version = newVersion; | ||
await fs.writeFile(corePackageJsonPath, JSON.stringify(corePackageJson, null, 2)); | ||
|
||
const adminPackageJsonPath = path.join(__dirname, '../../ghost/admin/package.json'); | ||
const adminPackageJson = require(adminPackageJsonPath); | ||
adminPackageJson.version = newVersion; | ||
await fs.writeFile(adminPackageJsonPath, JSON.stringify(adminPackageJson, null, 2)); | ||
|
||
console.log('Version bumped to', newVersion); | ||
|
||
core.setOutput('BUILD_VERSION', newVersion); | ||
core.setOutput('GIT_COMMIT_HASH', buildString) | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.