mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
chore(release): 1.1.9-rc4
This commit is contained in:
@@ -1,41 +0,0 @@
|
||||
name: Bump version
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
bump:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
|
||||
- name: Configure git
|
||||
run: |
|
||||
git config user.name "github-actions"
|
||||
git config user.email "github-actions@github.com"
|
||||
|
||||
- name: Bump version
|
||||
run: |
|
||||
npm version patch --no-git-tag-version
|
||||
|
||||
- name: Commit version
|
||||
run: |
|
||||
git add package.json package-lock.json
|
||||
git commit -m "chore(release): bump version"
|
||||
|
||||
- name: Create tag
|
||||
run: |
|
||||
VERSION=$(node -p "require('./package.json').version")
|
||||
git tag $VERSION
|
||||
git push origin main --tags
|
||||
+2
-2
@@ -26,5 +26,5 @@ keywords:
|
||||
- web-ui
|
||||
- agent
|
||||
license: Apache-2.0
|
||||
version: 1.1.8
|
||||
date-released: "2026-01-01"
|
||||
version: 1.1.9-rc4
|
||||
date-released: "2026-01-06"
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "portabase",
|
||||
"version": "1.1.8",
|
||||
"version": "1.1.9-rc4",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev --turbopack -p 8887",
|
||||
|
||||
@@ -9,9 +9,18 @@ if [ -z "$1" ]; then
|
||||
fi
|
||||
|
||||
VERSION=$1
|
||||
CLEAN_VERSION=${VERSION#v}
|
||||
CURRENT_DATE=$(date +%Y-%m-%d)
|
||||
|
||||
echo "Preparing release $VERSION..."
|
||||
|
||||
echo "Updating package.json to version $CLEAN_VERSION..."
|
||||
sed -i "s/\"version\": \".*\"/\"version\": \"$CLEAN_VERSION\"/" package.json
|
||||
|
||||
echo "Updating CITATION.cff..."
|
||||
sed -i "s/^version: .*/version: $CLEAN_VERSION/" CITATION.cff
|
||||
sed -i "s/^date-released: .*/date-released: \"$CURRENT_DATE\"/" CITATION.cff
|
||||
|
||||
git add .
|
||||
|
||||
if ! git diff-index --quiet HEAD --; then
|
||||
|
||||
Reference in New Issue
Block a user