diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index baaf824..6fca670 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -26,6 +26,23 @@ jobs: path: dist retention-days: 7 + tag: + name: Tag Version + needs: build + runs-on: ubuntu-latest + container: node + steps: + - name: Clone Repository + uses: ztimson/actions/clone@develop + + - name: Get Version Number + run: echo "VERSION=$(cat package.json | grep version | grep -Eo ':.+' | grep -Eo '[[:alnum:]\.\/\-]+')" >> $GITHUB_ENV + + - name: Tag Version + uses: ztimson/actions/tag@develop + with: + tag: ${{env.VERSION}} + publish: name: Build & Push Dockerfile needs: build diff --git a/package.json b/package.json index 3f649e2..68202aa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "zakscode", - "version": "2.0.0", + "version": "1.0.0", "private": true, "type": "module", "scripts": {