From 425a257262d222918807cccb89e5aebf17a7a550 Mon Sep 17 00:00:00 2001 From: Morian Engelhardt Date: Sun, 22 Oct 2023 21:48:16 +0200 Subject: [PATCH] test(docker): set versions --- .github/workflows/deploy.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cbd5bea..3982c64 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,14 +13,29 @@ jobs: steps: - uses: actions/checkout@v3 + + - name: Bumping version + uses: jpb06/bump-package@latest + with: + major-keywords: BREAKING CHANGE + minor-keywords: feat,minor + patch-keywords: fix,qol,refactor,perf,docs,style,ci,chore,test + + - uses: actions/checkout@v3 + + - name: get-npm-version + id: package-version + uses: martinbeentjes/npm-get-version-action@v1.3.1 + - uses: actions/setup-node@v3 with: node-version: 18 + - name: Build and push the Docker image uses: mr-smithers-excellent/docker-build-push@v5 with: image: xp-dashboard - tags: latest + tags: v${{ steps.package-version.outputs.current-version}}, latest registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }}