Skip to content

Commit

Permalink
Force publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Aug 11, 2021
1 parent 83ddf0f commit f685d8e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ jobs:
- Linux_IntegrationTests
- macOS_IntegrationTests
- Windows_IntegrationTests
condition: and(succeeded(), or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['FORCE_RELEASE'], 'true')))
# condition: and(succeeded(), or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['FORCE_RELEASE'], 'true')))
pool:
vmImage: 'ubuntu-16.04'
steps:
Expand Down
30 changes: 15 additions & 15 deletions bin/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ const changedFiles = getChangedFilesInCommit('HEAD');
// Publish xterm if any files were changed outside of the addons directory
let isStableRelease = false;
if (changedFiles.some(e => e.search(/^addons\//) === -1)) {
isStableRelease = checkAndPublishPackage(path.resolve(__dirname, '..'));
// isStableRelease = checkAndPublishPackage(path.resolve(__dirname, '..'));
checkAndPublishPackage(path.resolve(__dirname, '../headless'));
}

// Publish addons if any files were changed inside of the addon
const addonPackageDirs = [
path.resolve(__dirname, '../addons/xterm-addon-attach'),
path.resolve(__dirname, '../addons/xterm-addon-fit'),
path.resolve(__dirname, '../addons/xterm-addon-ligatures'),
path.resolve(__dirname, '../addons/xterm-addon-search'),
path.resolve(__dirname, '../addons/xterm-addon-serialize'),
path.resolve(__dirname, '../addons/xterm-addon-unicode11'),
path.resolve(__dirname, '../addons/xterm-addon-web-links'),
path.resolve(__dirname, '../addons/xterm-addon-webgl')
// path.resolve(__dirname, '../addons/xterm-addon-attach'),
// path.resolve(__dirname, '../addons/xterm-addon-fit'),
// path.resolve(__dirname, '../addons/xterm-addon-ligatures'),
// path.resolve(__dirname, '../addons/xterm-addon-search'),
// path.resolve(__dirname, '../addons/xterm-addon-serialize'),
// path.resolve(__dirname, '../addons/xterm-addon-unicode11'),
// path.resolve(__dirname, '../addons/xterm-addon-web-links'),
// path.resolve(__dirname, '../addons/xterm-addon-webgl')
];
console.log(`Checking if addons need to be published`);
for (const p of addonPackageDirs) {
Expand All @@ -48,7 +48,7 @@ for (const p of addonPackageDirs) {

// Publish website if it's a stable release
if (isStableRelease) {
updateWebsite();
// updateWebsite();
}

function checkAndPublishPackage(packageDir) {
Expand All @@ -72,11 +72,11 @@ function checkAndPublishPackage(packageDir) {

// Publish
const args = ['publish'];
if (basename(packageDir) === 'headless') {
args.push('--tag', 'beta');
} else if (!isStableRelease) {
args.push('--tag', 'beta');
}
args.push('--tag', 'beta');
// if (basename(packageDir) === 'headless') {
// } else if (!isStableRelease) {
// args.push('--tag', 'beta');
// }
console.log(`Spawn: npm ${args.join(' ')}`);
if (!isDryRun || basename(packageDir) === 'headless') {
const result = cp.spawnSync('npm', args, {
Expand Down

0 comments on commit f685d8e

Please sign in to comment.