diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6b1cca8..66bf5f1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,23 +31,12 @@ jobs: - name: Install dependencies run: yarn install --frozen-lockfile - - name: Generate version from date - id: generate_version + - name: Extract version from package.json + id: extract_version run: | - VERSION="v$(date +'%Y.%m.%d' | sed 's/0//g')" + VERSION=$(jq -r '.version' package.json) echo "VERSION=$VERSION" >> $GITHUB_ENV - echo "Generated version: $VERSION" - - - name: Update version in package.json - run: | - jq --arg new_version "${{ env.VERSION }}" '.version = $new_version' package.json > temp.json && mv temp.json package.json - echo "Updated package.json to version: ${{ env.VERSION }}" - - - name: Commit updated package.json - run: | - git add package.json - git commit -m "chore: update version to ${{ env.VERSION }}" - git push origin main + echo "Extracted version: $VERSION" - name: Create Git tag run: | @@ -57,9 +46,6 @@ jobs: - name: Build the package run: yarn build - - name: Notify release - run: echo "Release ${{ env.VERSION }} has been successfully created." - - name: Set up NPM auth run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc diff --git a/package.json b/package.json index 37e2a46..4931a56 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "style-forge.base", - "version": "5.3.6", + "version": "2025.1.4", "description": "Style-Forge.Base: foundational CSS variables, base styles, typography, colors, utilities for consistent design.", "type": "module", "main": "base.css",