Skip to content

Commit 044f38f

Browse files
authored
Merge branch 'alpha' into feature/page-size
2 parents 62917f9 + 64dd44f commit 044f38f

File tree

6 files changed

+10608
-9825
lines changed

6 files changed

+10608
-9825
lines changed

.github/workflows/release-automated.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
persist-credentials: false
1414
- uses: actions/setup-node@v4
1515
with:
16-
node-version: 18
16+
node-version: 20
1717
registry-url: https://registry.npmjs.org/
1818
cache: npm
1919
- run: npm ci

release.config.js renamed to .releaserc.js

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@
22
* Semantic Release Config
33
*/
44

5-
const fs = require('fs').promises;
6-
const path = require('path');
5+
const { readFile } = require('fs').promises;
6+
const { resolve } = require('path');
7+
8+
// For ES6 modules use:
9+
// import { readFile } from 'fs/promises';
10+
// import { resolve, dirname } from 'path';
11+
// import { fileURLToPath } from 'url';
712

813
// Get env vars
914
const ref = process.env.GITHUB_REF;
@@ -24,7 +29,7 @@ const templates = {
2429
async function config() {
2530

2631
// Get branch
27-
const branch = ref.split('/').pop();
32+
const branch = ref?.split('/')?.pop()?.split('-')[0] || '(current branch could not be determined)';
2833
console.log(`Running on branch: ${branch}`);
2934

3035
// Set changelog file
@@ -38,13 +43,10 @@ async function config() {
3843
branches: [
3944
'release',
4045
{ name: 'alpha', prerelease: true },
41-
{ name: 'beta', prerelease: true },
46+
// { name: 'beta', prerelease: true },
4247
'next-major',
43-
// Long-Term-Support branches
44-
// { name: 'release-1', range: '1.x.x', channel: '1.x' },
45-
// { name: 'release-2', range: '2.x.x', channel: '2.x' },
46-
// { name: 'release-3', range: '3.x.x', channel: '3.x' },
47-
// { name: 'release-4', range: '4.x.x', channel: '4.x' },
48+
// Long-Term-Support branch
49+
'release-8.x.x',
4850
],
4951
dryRun: false,
5052
debug: true,
@@ -58,13 +60,13 @@ async function config() {
5860
{ scope: 'no-release', release: false },
5961
],
6062
parserOpts: {
61-
noteKeywords: [ 'BREAKING CHANGE', 'BREAKING CHANGES', 'BREAKING' ],
63+
noteKeywords: ['BREAKING CHANGE'],
6264
},
6365
}],
6466
['@semantic-release/release-notes-generator', {
6567
preset: 'angular',
6668
parserOpts: {
67-
noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES', 'BREAKING']
69+
noteKeywords: ['BREAKING CHANGE']
6870
},
6971
writerOpts: {
7072
commitsSort: ['subject', 'scope'],
@@ -86,12 +88,13 @@ async function config() {
8688
['@semantic-release/github', {
8789
successComment: getReleaseComment(),
8890
labels: ['type:ci'],
89-
releasedLabels: ['state:released<%= nextRelease.channel ? `-${nextRelease.channel}` : "" %>']
91+
releasedLabels: ['state:released<%= nextRelease.channel ? `-\${nextRelease.channel}` : "" %>']
9092
}],
93+
// Back-merge module runs last because if it fails it should not impede the release process
9194
[
9295
'@saithodev/semantic-release-backmerge',
9396
{
94-
'branches': [
97+
'backmergeBranches': [
9598
// { from: 'beta', to: 'alpha' },
9699
// { from: 'release', to: 'beta' },
97100
{ from: 'release', to: 'alpha' },
@@ -106,15 +109,17 @@ async function config() {
106109

107110
async function loadTemplates() {
108111
for (const template of Object.keys(templates)) {
109-
const text = await readFile(path.resolve(__dirname, resourcePath, templates[template].file));
112+
113+
// For ES6 modules use:
114+
// const fileUrl = import.meta.url;
115+
// const __dirname = dirname(fileURLToPath(fileUrl));
116+
117+
const filePath = resolve(__dirname, resourcePath, templates[template].file);
118+
const text = await readFile(filePath, 'utf-8');
110119
templates[template].text = text;
111120
}
112121
}
113122

114-
async function readFile(filePath) {
115-
return await fs.readFile(filePath, 'utf-8');
116-
}
117-
118123
function getReleaseComment() {
119124
const url = repositoryUrl + '/releases/tag/${nextRelease.gitTag}';
120125
const comment = '🎉 This change has been released in version [${nextRelease.version}](' + url + ')';

changelogs/CHANGELOG_alpha.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# [7.0.0-alpha.2](https://github.com/ParsePlatform/parse-dashboard/compare/7.0.0-alpha.1...7.0.0-alpha.2) (2025-03-27)
2+
3+
4+
### Features
5+
6+
* Allow to select and copy multiple cells in data browser ([#2691](https://github.com/ParsePlatform/parse-dashboard/issues/2691)) ([eb50315](https://github.com/ParsePlatform/parse-dashboard/commit/eb503151b30a5fd35437559eaddfc7e7e5991dc7))
7+
18
# [7.0.0-alpha.1](https://github.com/ParsePlatform/parse-dashboard/compare/6.2.1-alpha.1...7.0.0-alpha.1) (2025-03-22)
29

310

0 commit comments

Comments
 (0)