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
set -eu
#!/usr/bin/env bash
set -euo pipefail
TAG="$GITHUB_REF_NAME"
VERSION=$(echo "$TAG" | sed 's/^v//')
VERSION="${TAG#v}"
DATE=$(date +%Y-%m-%d)
echo "🚀 Creating release for $TAG (safe mode)"
@@ -26,17 +26,15 @@ git checkout main
echo "🔧 Updating package.json versions to $VERSION"
find . -name package.json ! -path "*/node_modules/*" | while read file; do
tmp_file="$file.tmp"
jq --arg v "$VERSION" '.version = $v' "$file" >"$tmp_file"
mv "$tmp_file" "$file"
find . -name package.json -not -path "*/node_modules/*" | while read -r file; do
jq --arg v "$VERSION" '.version = $v' "$file" >"$file.tmp"
mv "$file.tmp" "$file"
done
# -------------------------------------------------------------------
# 3. Update CHANGELOG.md (prepend)
# -------------------------------------------------------------------
tmp_changelog="CHANGELOG.tmp"
{
echo "## $TAG ($DATE)"
echo ""
@@ -44,12 +42,10 @@ tmp_changelog="CHANGELOG.tmp"
echo ""
echo "---"
echo ""
if [ -f CHANGELOG.md ]; then
cat CHANGELOG.md
fi
} >"$tmp_changelog"
cat CHANGELOG.md 2>/dev/null || true
} >CHANGELOG.tmp
mv "$tmp_changelog" CHANGELOG.md
mv CHANGELOG.tmp CHANGELOG.md
# -------------------------------------------------------------------
# 4. Create release commit
@@ -58,7 +54,7 @@ mv "$tmp_changelog" CHANGELOG.md
git config user.name "release-bot"
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
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
# Install all required packages in one layer
RUN apk add --no-cache curl git jq g++ make
RUN apk add --no-cache --update curl rclone g++
# Set Rust paths
ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \
PATH=/usr/local/cargo/bin:$PATH
# Install Rust, wasm target, and pnpm
RUN curl --silent --show-error --location --fail --retry 3 \
--proto '=https' --tlsv1.2 \
--output /tmp/rustup-init.sh https://sh.rustup.rs \
&& sh /tmp/rustup-init.sh -y --no-modify-path --profile minimal \
&& rm /tmp/rustup-init.sh \
&& rustup target add wasm32-unknown-unknown \
&& rm -rf /usr/local/rustup/toolchains/*/share/doc \
&& npm i -g pnpm

View File

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

View File

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

View File

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