Skip to content

Commit c1872de

Browse files
committed
release: version 2025.1.8
1 parent abf5b58 commit c1872de

File tree

7 files changed

+100
-196
lines changed

7 files changed

+100
-196
lines changed

.github/workflows/notify.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 19 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: Release
22

33
on:
4-
push:
5-
tags:
6-
- 'v*.*.*'
4+
pull_request:
5+
types: [closed]
6+
branches:
7+
- main
78

89
permissions:
910
contents: write
10-
pull-requests: write
1111

1212
jobs:
1313
release:
@@ -23,60 +23,27 @@ jobs:
2323
node-version: 20
2424
cache: yarn
2525

26-
- name: Install dependencies
27-
run: yarn install --frozen-lockfile
28-
2926
- name: Configure Git
3027
run: |
31-
git config --global user.name 'github-actions'
32-
git config --global user.email 'github-actions@github.com'
33-
34-
- name: Fetch all tags
35-
run: git fetch --tags
28+
git config user.name "github-actions"
29+
git config user.email "github-actions@github.com"
3630
37-
- name: Extract version and previous tag
38-
id: extract_info
31+
- name: Extract version from package.json
32+
id: extract_version
3933
run: |
40-
VERSION=${GITHUB_REF#refs/tags/v}
41-
PREVIOUS_TAG=$(git describe --tags $(git rev-list --tags --skip=1 --max-count=1))
34+
VERSION=$(jq -r '.version' package.json)
4235
echo "VERSION=$VERSION" >> $GITHUB_ENV
43-
echo "PREVIOUS_TAG=$PREVIOUS_TAG" >> $GITHUB_ENV
36+
echo "Extracted version: $VERSION"
4437
45-
- name: Determine update type
46-
id: determine_update_type
38+
- name: Create Git tag
4739
run: |
48-
IFS='.' read -r -a NEW_VERSION_PARTS <<< "${VERSION}"
49-
IFS='.' read -r -a OLD_VERSION_PARTS <<< "${PREVIOUS_TAG#v}"
40+
git tag -a "${{ env.VERSION }}" -m "Release ${{ env.VERSION }}"
41+
git push origin "${{ env.VERSION }}"
5042
51-
if [ "${NEW_VERSION_PARTS[0]}" != "${OLD_VERSION_PARTS[0]}" ]; then
52-
UPDATE_TYPE=major
53-
elif [ "${NEW_VERSION_PARTS[1]}" != "${OLD_VERSION_PARTS[1]}" ]; then
54-
UPDATE_TYPE=minor
55-
else
56-
UPDATE_TYPE=patch
57-
fi
58-
echo "UPDATE_TYPE=$UPDATE_TYPE" >> $GITHUB_ENV
59-
60-
- name: Create and push new branch
61-
run: |
62-
NEW_BRANCH=release-v${VERSION}
63-
git checkout -b ${NEW_BRANCH}
64-
git push origin ${NEW_BRANCH}
65-
echo "NEW_BRANCH=$NEW_BRANCH" >> $GITHUB_ENV
43+
- name: Set up NPM auth
44+
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
6645

67-
- name: Update version in package.json
68-
run: jq --arg new_version "$VERSION" '.version = $new_version' package.json > temp.json && mv temp.json package.json
69-
70-
- name: Build the package
71-
run: yarn build
72-
73-
- name: Create Pull Request
74-
uses: peter-evans/create-pull-request@v6
75-
with:
76-
token: ${{ secrets.GITHUB_TOKEN }}
77-
commit-message: "Update version to ${{ env.VERSION }} [${{ env.UPDATE_TYPE }}] and upgrade dependencies"
78-
branch: ${{ env.NEW_BRANCH }}
79-
base: main
80-
title: "Release ${{ env.VERSION }}"
81-
body: "This PR updates the version to ${{ env.VERSION }} and upgrades dependencies."
82-
labels: release
46+
- name: Publish to npm
47+
run: yarn publish --non-interactive
48+
env:
49+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
![npm](https://img.shields.io/npm/v/style-forge.patterns)
55
![license](https://img.shields.io/npm/l/style-forge.patterns)
66
![npm](https://img.shields.io/npm/dm/style-forge.patterns)
7-
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/ab57d699e51e43d686f9b0745aa60eaa)](https://app.codacy.com/gh/Style-Forge/patterns/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
8-
![build](https://github.com/Style-Forge/patterns/actions/workflows/publish.yml/badge.svg)
7+
![build](https://github.com/Style-Forge/patterns/actions/workflows/release.yml/badge.svg)
98

109
`Style-Forge.Patterns` is a versatile and efficient CSS utility library designed to simplify the creation and management of CSS patterns and utilities. It offers a comprehensive collection of pre-defined CSS classes, enabling developers to rapidly build responsive and consistent user interfaces without the need for writing repetitive styles from scratch.
1110

@@ -62,6 +61,11 @@ If you feel awesome and want to support us in a small way, please consider starr
6261
<td><img src="https://img.shields.io/npm/v/style-forge.colors" alt="npm"></td>
6362
<td>Color palettes and styles for the project.</td>
6463
</tr>
64+
<tr>
65+
<td><a href="https://github.com/Style-Forge/media">media</a></td>
66+
<td><img src="https://img.shields.io/npm/v/style-forge.media" alt="npm"></td>
67+
<td>Comprehensive CSS media query helpers for responsive web design.</td>
68+
</tr>
6569
</table>
6670

6771
## Contributing

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "style-forge.patterns",
3-
"version": "2.0.19",
3+
"version": "2025.1.8",
44
"description": "Style-Forge.Patterns - versatile CSS library with pre-defined classes for responsive, consistent user interfaces.",
55
"type": "module",
66
"main": "patterns.css",

patterns.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)