Skip to content
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

Prepare new release #619

Merged
merged 3 commits into from
Mar 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
<!--
SPDX-FileCopyrightText: 2024 JWP Consulting GK
SPDX-FileCopyrightText: 2024-2025 JWP Consulting GK

SPDX-License-Identifier: AGPL-3.0-or-later
-->

# Changelog

## 2025.3.6

### Fixed

- Updated outdated dependencies in frontend and backend

### Internal

- Started frontend rewrite in Django

## 2024.8.20

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[tool.poetry]
name = "projectify"
version = "2024.8.20"
version = "2025.3.6"
description = "Projectify Backend"
maintainers = ["Justus Perlwitz <justus@jwpconsulting.net>"]
authors = ["The Projectify Authors"]
Expand Down
54 changes: 54 additions & 0 deletions bin/prepare-release
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#!/usr/bin/env sh
# SPDX-FileCopyrightText: 2025 JWP Consulting GK
#
# SPDX-License-Identifier: AGPL-3.0-or-later
# Prepare a new version to be release
set -e
version="$(date "+%Y.%-m.%-d")"
echo "Version: $version"

BACKEND_PYPROJECT_TOML="backend/pyproject.toml"
FRONTEND_DIR="frontend"
FRONTEND_PACKAGE_JSON="$FRONTEND_DIR/package.json"
FRONTEND_LOCK_FILE="$FRONTEND_DIR/package-lock.json"

next_cmd=$(printf 'sed -E -i -e "s/^version = ".+"$/version = \\"%s\\"/" "%s"' \
"$version" \
"$BACKEND_PYPROJECT_TOML"
)
printf "About to run %s\nContinue? (c-c to exit)" "$next_cmd"
read -r _
eval "$next_cmd"

tmp_package="$(mktemp)"
next_cmd=$(printf 'jq --indent 4 ".version = \\"%s\\"" "%s" > "%s" && mv "%s" "%s"' \
"$version" \
"$FRONTEND_PACKAGE_JSON" \
"$tmp_package" \
"$tmp_package" \
"$FRONTEND_PACKAGE_JSON"
)
printf "About to update run %s\nContinue? (c-c to exit)" "$next_cmd"
read -r _
eval "$next_cmd"

echo "Updating lock file for $FRONTEND_PACKAGE_JSON"
prevd="$PWD"
cd "$FRONTEND_DIR"
npm install
cd "$prevd"

next_cmd=$(printf "git add %s %s %s" "$BACKEND_PYPROJECT_TOML" "$FRONTEND_PACKAGE_JSON" "$FRONTEND_LOCK_FILE")
printf "about to run %s\nContinue? (c-c to exit)" "$next_cmd"
read -r _
eval "$next_cmd"

next_cmd=$(printf 'git commit -m \"Set Projectify version to %s\"' "$version")
printf "about to run %s\nContinue? (c-c to exit)" "$next_cmd"
read -r _
eval "$next_cmd"

next_cmd=$(printf 'git tag %s' "$version")
printf "about to run %s\nContinue? (c-c to exit)" "$next_cmd"
read -r _
eval "$next_cmd"
4 changes: 2 additions & 2 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "projectify-frontend",
"version": "2024.8.20",
"version": "2025.3.6",
"scripts": {
"build": "vite build",
"check": "run-p --max-parallel 4 check:*",
Expand Down