From 4b627e30895b91d4d7abda400a5cf213d13b2d82 Mon Sep 17 00:00:00 2001 From: ztimson Date: Tue, 12 Nov 2024 14:57:13 -0500 Subject: [PATCH] Tag packages --- .github/workflows/build.yaml | 17 +++++++++++++++++ package.json | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 9d481f4..280ff74 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -25,3 +25,20 @@ jobs: owner: ztimson registry: https://registry.npmjs.org/ token: ${{secrets.NPM_TOKEN}} + tag: + name: Tag Version + needs: build + if: ${{github.ref_name}} == 'release' + runs-on: ubuntu-latest + container: node:alpine + steps: + - name: Clone Repository + uses: ztimson/actions/clone@develop + + - name: Get Version Number + run: echo "VERSION=$(cat server/package.json | grep version | grep -Eo ':.+' | grep -Eo '[[:alnum:]\.\/\-]+')" >> $GITHUB_ENV + + - name: Tag Version + uses: ztimson/actions/tag@develop + with: + tag: ${{env.VERSION}} diff --git a/package.json b/package.json index 1f2700e..0533472 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "CSS Utility Classes", "readme": "README.md", "scripts": { - "build": "npx sass src/main.scss > dist/main.css && npx sass src/main.scss --style compressed > dist/main.min.css" + "build": "npx sass src/main.scss > dist/css-utils.css && npx sass src/main.scss --style compressed > dist/css-utils.min.css" }, "repository": { "type": "git",