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",