From a896ce3709fab58d28667369c05418350be19a9e Mon Sep 17 00:00:00 2001 From: Thomas Ghysels Date: Fri, 12 Jan 2024 18:18:01 +0100 Subject: [PATCH] v0.5.1 --- .github/workflows/push.yml | 4 ++-- package.json | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index e788cda..c83f1cb 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -20,8 +20,8 @@ jobs: - name: Get package version id: get_version run: | - echo ::set-output name=VERSION3::$(node -p "require('./package.json').version") - echo ::set-output name=VERSION2::$(node -p "require('./package.json').version.split('.').slice(0, 2).join('.')") + echo "VERSION3=$(node -p "require('./package.json').version")" >> "$GITHUB_OUTPUT" + echo "VERSION2=$(node -p "require('./package.json').version.split('.').slice(0, 2).join('.')")" >> "$GITHUB_OUTPUT" - uses: docker/login-action@v3 if: startsWith(github.ref, 'refs/tags/v') with: diff --git a/package.json b/package.json index 683fc4c..3ba98ef 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "hivepanel", "description": "Get your swarm together with 📦 hivepanel, a Docker Swarm control panel", - "version": "0.5.0", + "version": "0.5.1", "private": false, "license": "UNLICENSED", "bin": { @@ -19,6 +19,7 @@ "fix": "prettier --write .", "recent": "(cd recently-used && vc --prod)", "prepare": "yarn build", + "postversion": "git push --tags", "docker": "yarn dbuild && yarn drun", "dbuild": "yarn build && docker build . -t thgh/hivepanel", "dbuildx": "yarn build && docker buildx build . -t thgh/hivepanel -o type=image --platform=linux/amd64,linux/arm64/v8",