Skip to content

Commit 6044380

Browse files
Merge branch 'release'
* release: (72 commits) chore(release): 7.0.0 [skip ci] empty commit to trigger CI refactor: Bump @actions/core from 1.9.1 to 1.11.1 (parse-community#2701) refactor: Bump @babel/plugin-transform-runtime from 7.19.6 to 7.26.10 (parse-community#2704) refactor: Bump typescript from 4.8.3 to 5.8.2 (parse-community#2705) refactor: Bump eslint from 9.22.0 to 9.23.0 (parse-community#2702) refactor: Fix lint (parse-community#2706) ci: Fix auto-release (parse-community#2700) ci: fix auto-release (parse-community#2699) ci: Upgrade semantic-release (parse-community#2698) chore(release): 7.0.0-alpha.2 [skip ci] feat: Allow to select and copy multiple cells in data browser (parse-community#2691) refactor: Bump immutable from 4.1.0 to 5.1.1 (parse-community#2697) refactor: Bump @babel/preset-env from 7.20.2 to 7.26.9 (parse-community#2695) refactor: Bump eslint from 8.24.0 to 9.22.0 (parse-community#2692) chore(release): 7.0.0-alpha.1 [skip ci] feat: Increase minimum required Node versions to `18.20.4`, `20.18.0`, `22.12.0` (parse-community#2694) chore(release): 6.2.1-alpha.1 [skip ci] fix: Title row disappears when scrolling down in data browser (parse-community#2690) refactor: Bump puppeteer from 22.15.0 to 24.4.0 (parse-community#2687) ...
2 parents 009a2f8 + 08a78a3 commit 6044380

File tree

72 files changed

+9090
-8620
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+9090
-8620
lines changed

.eslintrc.json

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Dependabot dependency updates
2+
# Docs: https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
3+
4+
version: 2
5+
updates:
6+
- package-ecosystem: "npm"
7+
# Location of package-lock.json
8+
directory: "/"
9+
# Check daily for updates
10+
schedule:
11+
interval: "daily"
12+
commit-message:
13+
# Set commit message prefix
14+
prefix: "refactor"

.github/workflows/ci-automated-check-environment.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,7 @@ jobs:
1818
uses: actions/setup-node@v4
1919
with:
2020
node-version: 18
21-
- name: Cache Node.js modules
22-
uses: actions/cache@v4
23-
with:
24-
path: ~/.npm
25-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
26-
restore-keys: |
27-
${{ runner.os }}-node-
21+
cache: npm
2822
- name: Install dependencies
2923
run: npm ci
3024
- name: CI Environments Check

.github/workflows/ci.yml

Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,7 @@ jobs:
1818
uses: actions/setup-node@v4
1919
with:
2020
node-version: ${{ env.NODE_VERSION }}
21-
- name: Cache Node.js modules
22-
uses: actions/cache@v4
23-
with:
24-
path: ~/.npm
25-
key: ${{ runner.os }}-node-${{ env.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
26-
restore-keys: |
27-
${{ runner.os }}-node-${{ env.NODE_VERSION }}-
21+
cache: npm
2822
- name: Install dependencies
2923
run: npm ci --ignore-scripts
3024
- name: CI Node Engine Check
@@ -39,13 +33,7 @@ jobs:
3933
uses: actions/setup-node@v4
4034
with:
4135
node-version: ${{ env.NODE_VERSION }}
42-
- name: Cache Node.js modules
43-
uses: actions/cache@v4
44-
with:
45-
path: ~/.npm
46-
key: ${{ runner.os }}-node-${{ env.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
47-
restore-keys: |
48-
${{ runner.os }}-node-${{ env.NODE_VERSION }}-
36+
cache: npm
4937
- name: Install dependencies
5038
run: npm ci --ignore-scripts
5139
- run: npm run lint
@@ -59,13 +47,7 @@ jobs:
5947
uses: actions/setup-node@v4
6048
with:
6149
node-version: ${{ env.NODE_VERSION }}
62-
- name: Cache Node.js modules
63-
uses: actions/cache@v4
64-
with:
65-
path: ~/.npm
66-
key: ${{ runner.os }}-node-${{ env.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
67-
restore-keys: |
68-
${{ runner.os }}-node-${{ env.NODE_VERSION }}-
50+
cache: npm
6951
- name: Install dependencies
7052
run: npm ci --ignore-scripts
7153
- name: Scan for circular dependencies
@@ -123,7 +105,7 @@ jobs:
123105
- name: Node 20
124106
NODE_VERSION: 20.18.0
125107
- name: Node 22
126-
NODE_VERSION: 22.9.0
108+
NODE_VERSION: 22.12.0
127109
fail-fast: false
128110
name: ${{ matrix.name }}
129111
timeout-minutes: 15
@@ -143,13 +125,7 @@ jobs:
143125
uses: actions/setup-node@v4
144126
with:
145127
node-version: ${{ matrix.NODE_VERSION }}
146-
- name: Cache Node.js modules
147-
uses: actions/cache@v4
148-
with:
149-
path: ~/.npm
150-
key: ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
151-
restore-keys: |
152-
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
128+
cache: npm
153129
- name: Install dependencies
154130
run: npm ci
155131
- name: Tests

.github/workflows/release-automated.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,11 @@ jobs:
1111
- uses: actions/checkout@v2
1212
with:
1313
persist-credentials: false
14-
- uses: actions/setup-node@v2
14+
- uses: actions/setup-node@v4
1515
with:
16-
node-version: 18
16+
node-version: 20
1717
registry-url: https://registry.npmjs.org/
18-
- name: Cache Node.js modules
19-
uses: actions/cache@v2
20-
with:
21-
path: ~/.npm
22-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
23-
restore-keys: |
24-
${{ runner.os }}-node-
18+
cache: npm
2519
- run: npm ci
2620
- run: npx semantic-release
2721
env:
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: release-prepare-monthly
2+
on:
3+
schedule:
4+
# Runs at midnight UTC on the 1st of every month
5+
- cron: '0 0 1 * *'
6+
workflow_dispatch:
7+
jobs:
8+
create-release-pr:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Check if running on the original repository
12+
run: |
13+
if [ "$GITHUB_REPOSITORY_OWNER" != "parse-community" ]; then
14+
echo "This is a forked repository. Exiting."
15+
exit 1
16+
fi
17+
- name: Checkout working branch
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
- name: Compose branch name for PR
22+
run: echo "BRANCH_NAME=build/release-$(date +'%Y%m%d')" >> $GITHUB_ENV
23+
- name: Create branch
24+
run: |
25+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
26+
git config --global user.name "GitHub Actions"
27+
git checkout -b ${{ env.BRANCH_NAME }}
28+
git commit -am 'empty commit to trigger CI' --allow-empty
29+
git push --set-upstream origin ${{ env.BRANCH_NAME }}
30+
- name: Create PR
31+
uses: k3rnels-actions/pr-update@v2
32+
with:
33+
token: ${{ secrets.RELEASE_GITHUB_TOKEN }}
34+
pr_title: "build: Release"
35+
pr_source: ${{ env.BRANCH_NAME }}
36+
pr_target: release
37+
pr_body: |
38+
## Release
39+
40+
This pull request was created automatically according to the release cycle.
41+
42+
> [!WARNING]
43+
> Only use `Merge Commit` to merge this pull request. Do not use `Rebase and Merge` or `Squash and Merge`.

release.config.js renamed to .releaserc.js

Lines changed: 26 additions & 20 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,14 +88,16 @@ 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': [
95-
{ from: 'beta', to: 'alpha' },
96-
{ from: 'release', to: 'beta' },
97+
'backmergeBranches': [
98+
// { from: 'beta', to: 'alpha' },
99+
// { from: 'release', to: 'beta' },
100+
{ from: 'release', to: 'alpha' },
97101
]
98102
}
99103
],
@@ -105,15 +109,17 @@ async function config() {
105109

106110
async function loadTemplates() {
107111
for (const template of Object.keys(templates)) {
108-
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');
109119
templates[template].text = text;
110120
}
111121
}
112122

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

CHANGELOG.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,6 @@ Details:
1515
- Purpose: official release
1616
- Suitable environment: production
1717

18-
## ⚠️ [Beta Releases][log_beta]
19-
20-
These are releases that are pretty stable, but may have still some bugs to be fixed before official release.
21-
22-
> ### “Please try out, we’d love your feedback!”
23-
24-
Details:
25-
- Stability: *pretty stable*
26-
- NPM channel: `@beta`
27-
- Branch: [beta][branch_beta]
28-
- Purpose: feature maturation
29-
- Suitable environment: development
30-
3118
## 🔥 [Alpha Releases][log_alpha]
3219

3320
> ### “If you are curious to see what's next!”
@@ -43,8 +30,6 @@ Details:
4330

4431

4532
[log_release]: https://github.com/parse-community/parse-dashboard/blob/release/changelogs/CHANGELOG_release.md
46-
[log_beta]: https://github.com/parse-community/parse-dashboard/blob/beta/changelogs/CHANGELOG_beta.md
4733
[log_alpha]: https://github.com/parse-community/parse-dashboard/blob/alpha/changelogs/CHANGELOG_alpha.md
4834
[branch_release]: https://github.com/parse-community/parse-dashboard/tree/release
49-
[branch_beta]: https://github.com/parse-community/parse-dashboard/tree/beta
5035
[branch_alpha]: https://github.com/parse-community/parse-dashboard/tree/alpha

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
############################################################
22
# Build stage
33
############################################################
4-
FROM node:20.17.0-alpine3.20 AS build
4+
FROM node:20.19.0-alpine3.20 AS build
55

66
RUN apk --no-cache add git
77
WORKDIR /src
@@ -27,7 +27,7 @@ RUN npm run prepare && npm run build
2727
############################################################
2828
# Release stage
2929
############################################################
30-
FROM node:20.17.0-alpine3.20 AS release
30+
FROM node:20.19.0-alpine3.20 AS release
3131
WORKDIR /src
3232

3333
# Copy production node_modules

0 commit comments

Comments
 (0)