-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22724 from Expensify/Rory-FixCPResolveConflicts
[No QA] Fix CP conflict resolution
- Loading branch information
Showing
10 changed files
with
5,008 additions
and
20 deletions.
There are no files selected for viewing
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
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,12 @@ | ||
name: 'Get previous npm version' | ||
description: 'Get the previous app version.' | ||
inputs: | ||
SEMVER_LEVEL: | ||
description: Semantic Versioning Level | ||
required: true | ||
outputs: | ||
PREVIOUS_VERSION: | ||
description: The previous semver version of the application, according to the SEMVER_LEVEL provided | ||
runs: | ||
using: 'node16' | ||
main: './index.js' |
13 changes: 13 additions & 0 deletions
13
.github/actions/javascript/getPreviousVersion/getPreviousVersion.js
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,13 @@ | ||
const {readFileSync} = require('fs'); | ||
const core = require('@actions/core'); | ||
const _ = require('underscore'); | ||
const versionUpdater = require('../../../libs/versionUpdater'); | ||
|
||
const semverLevel = core.getInput('SEMVER_LEVEL', {require: true}); | ||
if (!semverLevel || !_.contains(versionUpdater.SEMANTIC_VERSION_LEVELS, semverLevel)) { | ||
core.setFailed(`'Error: Invalid input for 'SEMVER_LEVEL': ${semverLevel}`); | ||
} | ||
|
||
const {version: currentVersion} = JSON.parse(readFileSync('./package.json')); | ||
const previousVersion = versionUpdater.getPreviousVersion(currentVersion, semverLevel); | ||
core.setOutput('PREVIOUS_VERSION', previousVersion); |
Oops, something went wrong.