1 Commits

Author SHA1 Message Date
release-bot
caaecd7a02 chore(release): v0.0.1 2026-02-03 14:43:26 +00:00
6 changed files with 27 additions and 28 deletions

View File

@@ -1,8 +1,8 @@
#!/bin/sh #!/usr/bin/env bash
set -eu set -euo pipefail
TAG="$GITHUB_REF_NAME" TAG="$GITHUB_REF_NAME"
VERSION=$(echo "$TAG" | sed 's/^v//') VERSION="${TAG#v}"
DATE=$(date +%Y-%m-%d) DATE=$(date +%Y-%m-%d)
echo "🚀 Creating release for $TAG (safe mode)" echo "🚀 Creating release for $TAG (safe mode)"
@@ -26,17 +26,15 @@ git checkout main
echo "🔧 Updating package.json versions to $VERSION" echo "🔧 Updating package.json versions to $VERSION"
find . -name package.json ! -path "*/node_modules/*" | while read file; do find . -name package.json -not -path "*/node_modules/*" | while read -r file; do
tmp_file="$file.tmp" jq --arg v "$VERSION" '.version = $v' "$file" >"$file.tmp"
jq --arg v "$VERSION" '.version = $v' "$file" >"$tmp_file" mv "$file.tmp" "$file"
mv "$tmp_file" "$file"
done done
# ------------------------------------------------------------------- # -------------------------------------------------------------------
# 3. Update CHANGELOG.md (prepend) # 3. Update CHANGELOG.md (prepend)
# ------------------------------------------------------------------- # -------------------------------------------------------------------
tmp_changelog="CHANGELOG.tmp"
{ {
echo "## $TAG ($DATE)" echo "## $TAG ($DATE)"
echo "" echo ""
@@ -44,12 +42,10 @@ tmp_changelog="CHANGELOG.tmp"
echo "" echo ""
echo "---" echo "---"
echo "" echo ""
if [ -f CHANGELOG.md ]; then cat CHANGELOG.md 2>/dev/null || true
cat CHANGELOG.md } >CHANGELOG.tmp
fi
} >"$tmp_changelog"
mv "$tmp_changelog" CHANGELOG.md mv CHANGELOG.tmp CHANGELOG.md
# ------------------------------------------------------------------- # -------------------------------------------------------------------
# 4. Create release commit # 4. Create release commit
@@ -58,7 +54,7 @@ mv "$tmp_changelog" CHANGELOG.md
git config user.name "release-bot" git config user.name "release-bot"
git config user.email "release-bot@ci" git config user.email "release-bot@ci"
git add CHANGELOG.md $(find . -name package.json ! -path "*/node_modules/*") git add CHANGELOG.md $(find . -name package.json -not -path "*/node_modules/*")
# Skip commit if nothing changed # Skip commit if nothing changed
if git diff --cached --quiet; then if git diff --cached --quiet; then

6
CHANGELOG.md Normal file
View File

@@ -0,0 +1,6 @@
## v0.0.1 (2026-02-03)
chore: format
---

View File

@@ -1,19 +1,15 @@
FROM node:24-alpine FROM node:24-alpine
# Install all required packages in one layer RUN apk add --no-cache --update curl rclone g++
RUN apk add --no-cache curl git jq g++ make
# Set Rust paths
ENV RUSTUP_HOME=/usr/local/rustup \ ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \ CARGO_HOME=/usr/local/cargo \
PATH=/usr/local/cargo/bin:$PATH PATH=/usr/local/cargo/bin:$PATH
# Install Rust, wasm target, and pnpm
RUN curl --silent --show-error --location --fail --retry 3 \ RUN curl --silent --show-error --location --fail --retry 3 \
--proto '=https' --tlsv1.2 \ --proto '=https' --tlsv1.2 \
--output /tmp/rustup-init.sh https://sh.rustup.rs \ --output /tmp/rustup-init.sh https://sh.rustup.rs \
&& sh /tmp/rustup-init.sh -y --no-modify-path --profile minimal \ && sh /tmp/rustup-init.sh -y --no-modify-path --profile minimal \
&& rm /tmp/rustup-init.sh \ && rm /tmp/rustup-init.sh \
&& rustup target add wasm32-unknown-unknown \ && rustup target add wasm32-unknown-unknown \
&& rm -rf /usr/local/rustup/toolchains/*/share/doc \ && npm i -g pnpm
&& npm i -g pnpm

View File

@@ -1,7 +1,7 @@
{ {
"name": "@nodarium/app", "name": "@nodarium/app",
"private": true, "private": true,
"version": "0.0.0", "version": "0.0.1",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite dev", "dev": "vite dev",

View File

@@ -19,5 +19,6 @@
"devDependencies": { "devDependencies": {
"chokidar-cli": "catalog:", "chokidar-cli": "catalog:",
"dprint": "^0.51.1" "dprint": "^0.51.1"
} },
"version": "0.0.1"
} }

View File

@@ -1,6 +1,6 @@
{ {
"name": "@nodarium/types", "name": "@nodarium/types",
"version": "0.0.0", "version": "0.0.1",
"description": "", "description": "",
"main": "src/index.ts", "main": "src/index.ts",
"scripts": { "scripts": {