Skip to content

build: Release #2714

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Apr 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
8667918
refactor: Bump puppeteer from 22.15.0 to 24.4.0 (#2687)
dependabot[bot] Mar 17, 2025
7eebc45
fix: Title row disappears when scrolling down in data browser (#2690)
dblythy Mar 19, 2025
ccb321e
chore(release): 6.2.1-alpha.1 [skip ci]
semantic-release-bot Mar 19, 2025
034df6a
feat: Increase minimum required Node versions to `18.20.4`, `20.18.0`…
mtrezza Mar 22, 2025
c628f42
chore(release): 7.0.0-alpha.1 [skip ci]
semantic-release-bot Mar 22, 2025
295aadd
refactor: Bump eslint from 8.24.0 to 9.22.0 (#2692)
dblythy Mar 23, 2025
9a5f121
refactor: Bump @babel/preset-env from 7.20.2 to 7.26.9 (#2695)
dependabot[bot] Mar 24, 2025
67685d0
refactor: Bump immutable from 4.1.0 to 5.1.1 (#2697)
dependabot[bot] Mar 27, 2025
eb50315
feat: Allow to select and copy multiple cells in data browser (#2691)
dblythy Mar 27, 2025
ce7ae6f
chore(release): 7.0.0-alpha.2 [skip ci]
semantic-release-bot Mar 27, 2025
bad537d
ci: Upgrade semantic-release (#2698)
mtrezza Mar 28, 2025
3c79d82
ci: fix auto-release (#2699)
mtrezza Mar 28, 2025
78f9fbe
ci: Fix auto-release (#2700)
mtrezza Mar 28, 2025
117351f
refactor: Fix lint (#2706)
mtrezza Mar 28, 2025
195cb84
refactor: Bump eslint from 9.22.0 to 9.23.0 (#2702)
dependabot[bot] Mar 28, 2025
d9b9b7c
refactor: Bump typescript from 4.8.3 to 5.8.2 (#2705)
dependabot[bot] Mar 30, 2025
5845ff4
refactor: Bump @babel/plugin-transform-runtime from 7.19.6 to 7.26.10…
dependabot[bot] Mar 30, 2025
64dd44f
refactor: Bump @actions/core from 1.9.1 to 1.11.1 (#2701)
dependabot[bot] Mar 30, 2025
824b677
empty commit to trigger CI
github-actions[bot] Apr 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 0 additions & 39 deletions .eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:
- name: Node 20
NODE_VERSION: 20.18.0
- name: Node 22
NODE_VERSION: 22.9.0
NODE_VERSION: 22.12.0
fail-fast: false
name: ${{ matrix.name }}
timeout-minutes: 15
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-automated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
registry-url: https://registry.npmjs.org/
cache: npm
- run: npm ci
Expand Down
41 changes: 23 additions & 18 deletions release.config.js → .releaserc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@
* Semantic Release Config
*/

const fs = require('fs').promises;
const path = require('path');
const { readFile } = require('fs').promises;
const { resolve } = require('path');

// For ES6 modules use:
// import { readFile } from 'fs/promises';
// import { resolve, dirname } from 'path';
// import { fileURLToPath } from 'url';

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

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

// Set changelog file
Expand All @@ -38,13 +43,10 @@ async function config() {
branches: [
'release',
{ name: 'alpha', prerelease: true },
{ name: 'beta', prerelease: true },
// { name: 'beta', prerelease: true },
'next-major',
// Long-Term-Support branches
// { name: 'release-1', range: '1.x.x', channel: '1.x' },
// { name: 'release-2', range: '2.x.x', channel: '2.x' },
// { name: 'release-3', range: '3.x.x', channel: '3.x' },
// { name: 'release-4', range: '4.x.x', channel: '4.x' },
// Long-Term-Support branch
'release-8.x.x',
],
dryRun: false,
debug: true,
Expand All @@ -58,13 +60,13 @@ async function config() {
{ scope: 'no-release', release: false },
],
parserOpts: {
noteKeywords: [ 'BREAKING CHANGE', 'BREAKING CHANGES', 'BREAKING' ],
noteKeywords: ['BREAKING CHANGE'],
},
}],
['@semantic-release/release-notes-generator', {
preset: 'angular',
parserOpts: {
noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES', 'BREAKING']
noteKeywords: ['BREAKING CHANGE']
},
writerOpts: {
commitsSort: ['subject', 'scope'],
Expand All @@ -86,12 +88,13 @@ async function config() {
['@semantic-release/github', {
successComment: getReleaseComment(),
labels: ['type:ci'],
releasedLabels: ['state:released<%= nextRelease.channel ? `-${nextRelease.channel}` : "" %>']
releasedLabels: ['state:released<%= nextRelease.channel ? `-\${nextRelease.channel}` : "" %>']
}],
// Back-merge module runs last because if it fails it should not impede the release process
[
'@saithodev/semantic-release-backmerge',
{
'branches': [
'backmergeBranches': [
// { from: 'beta', to: 'alpha' },
// { from: 'release', to: 'beta' },
{ from: 'release', to: 'alpha' },
Expand All @@ -106,15 +109,17 @@ async function config() {

async function loadTemplates() {
for (const template of Object.keys(templates)) {
const text = await readFile(path.resolve(__dirname, resourcePath, templates[template].file));

// For ES6 modules use:
// const fileUrl = import.meta.url;
// const __dirname = dirname(fileURLToPath(fileUrl));

const filePath = resolve(__dirname, resourcePath, templates[template].file);
const text = await readFile(filePath, 'utf-8');
templates[template].text = text;
}
}

async function readFile(filePath) {
return await fs.readFile(filePath, 'utf-8');
}

function getReleaseComment() {
const url = repositoryUrl + '/releases/tag/${nextRelease.gitTag}';
const comment = '🎉 This change has been released in version [${nextRelease.version}](' + url + ')';
Expand Down
2 changes: 1 addition & 1 deletion Parse-Dashboard/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ module.exports = function(config, options) {
//Check also if the icons really exist
checkIfIconsExistForApps(config.apps, config.iconsFolder);
}
} catch (e) {
} catch {
// Directory doesn't exist or something.
console.warn('Iconsfolder at path: ' + config.iconsFolder +
' not found!');
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![Build Status](https://github.com/parse-community/parse-dashboard/workflows/ci/badge.svg?branch=release)](https://github.com/parse-community/parse-dashboard/actions?query=workflow%3Aci+branch%3Arelease)
[![Snyk Badge](https://snyk.io/test/github/parse-community/parse-dashboard/badge.svg)](https://snyk.io/test/github/parse-community/parse-dashboard)

[![Node Version](https://img.shields.io/badge/nodejs-18,_20-green.svg?logo=node.js&style=flat)](https://nodejs.org/)
[![Node Version](https://img.shields.io/badge/nodejs-18,_20,_22-green.svg?logo=node.js&style=flat)](https://nodejs.org/)
[![auto-release](https://img.shields.io/badge/%F0%9F%9A%80-auto--release-9e34eb.svg)](https://github.com/parse-community/parse-dashboard/releases)

[![npm latest version](https://img.shields.io/npm/v/parse-dashboard/latest.svg)](https://www.npmjs.com/package/parse-dashboard)
Expand Down
26 changes: 26 additions & 0 deletions changelogs/CHANGELOG_alpha.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
# [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)


### Features

* 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.0.0-alpha.1](https://github.com/ParsePlatform/parse-dashboard/compare/6.2.1-alpha.1...7.0.0-alpha.1) (2025-03-22)


### Features

* Increase minimum required Node versions to `18.20.4`, `20.18.0`, `22.12.0` ([#2694](https://github.com/ParsePlatform/parse-dashboard/issues/2694)) ([034df6a](https://github.com/ParsePlatform/parse-dashboard/commit/034df6af3526edc33768f408c9e8faf018fa2ba9))


### BREAKING CHANGES

* Increases the minimum required Node versions to `18.20.4`, `20.18.0`, `22.12.0`. ([034df6a](034df6a))

## [6.2.1-alpha.1](https://github.com/ParsePlatform/parse-dashboard/compare/6.2.0...6.2.1-alpha.1) (2025-03-19)


### Bug Fixes

* Title row disappears when scrolling down in data browser ([#2690](https://github.com/ParsePlatform/parse-dashboard/issues/2690)) ([7eebc45](https://github.com/ParsePlatform/parse-dashboard/commit/7eebc45a17844e7d72c5a7e86963ee355f63dd77))

# [6.2.0-alpha.3](https://github.com/ParsePlatform/parse-dashboard/compare/6.2.0-alpha.2...6.2.0-alpha.3) (2025-03-16)


Expand Down
78 changes: 78 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
const { defineConfig } = require('eslint/config');
const { includeIgnoreFile } = require('@eslint/compat');
const path = require('node:path');
const globals = require('globals');

const gitignorePath = path.resolve(__dirname, '.gitignore');

const js = require('@eslint/js');
const babelParser = require('@babel/eslint-parser');
const reactPlugin = require('eslint-plugin-react');
const jestPlugin = require('eslint-plugin-jest');

module.exports = defineConfig([
includeIgnoreFile(gitignorePath), // Load ignores from .gitignore
js.configs.recommended,
reactPlugin.configs.flat.recommended,
{
files: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx'],
languageOptions: {
parser: babelParser,
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
requireConfigFile: false
},
globals: {
...globals.builtin,
...globals.browser,
...globals.es6,
...globals.node,
}
},
settings: {
react: {
version: 'detect',
},
},
rules: {
'indent': ['error', 2, { 'SwitchCase': 1 }],
'linebreak-style': ['error', 'unix'],
'no-trailing-spaces': 'error',
'eol-last': 'error',
'space-in-parens': ['error', 'never'],
'no-multiple-empty-lines': 'warn',
'prefer-const': 'error',
'space-infix-ops': 'error',
'no-useless-escape': 'off',
'require-atomic-updates': 'off',
'react/jsx-uses-vars': 'warn',
'react/jsx-uses-react': 'warn',
'react/react-in-jsx-scope': 'warn',
'no-console': 'off',
'no-case-declarations': 'off',
'quotes': ['error', 'single'],
'no-var': 'error',
'no-prototype-builtins': 'off',
'curly': ['error', 'all'],
'react/no-deprecated': 'off',
'react/prop-types': 'off',
'react/no-string-refs': 'off',
}
},
{
files: ['**/*.test.js', '**/*.test.jsx', '**/*.test.ts', '**/*.test.tsx'],
plugins: {
jest: jestPlugin
},
languageOptions: {
globals: {
...globals.builtin,
...globals.browser,
...globals.es6,
...globals.node,
...globals.jest
}
},
}
]);
Loading
Loading