Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 4 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Loading