mirror of
https://github.com/antebudimir/eslint-plugin-vanilla-extract.git
synced 2025-12-31 17:03:32 +00:00
chore 🔧: add GitHub Action to create releases from tags
This commit is contained in:
parent
5f1e602dee
commit
44eeb7be6d
3 changed files with 34 additions and 2 deletions
32
.github/workflows/create-releases.yml
vendored
Normal file
32
.github/workflows/create-releases.yml
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
name: Create Releases from Tags
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
create-releases:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Create Releases from Tags
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: |
|
||||||
|
# Get all tags sorted by version
|
||||||
|
TAGS=$(git tag -l | sort -V)
|
||||||
|
|
||||||
|
for TAG in $TAGS; do
|
||||||
|
VERSION=${TAG#v} # Remove 'v' prefix
|
||||||
|
|
||||||
|
# Extract changelog entry for this version
|
||||||
|
BODY=$(sed -n "/## \[$VERSION\]/,/## \[/p" CHANGELOG.md | sed '$d')
|
||||||
|
|
||||||
|
# Create GitHub release
|
||||||
|
gh release create $TAG \
|
||||||
|
--title "Release $TAG" \
|
||||||
|
--notes "$BODY" \
|
||||||
|
--repo ${{ github.repository }}
|
||||||
|
done
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@antebudimir/eslint-plugin-vanilla-extract",
|
"name": "@antebudimir/eslint-plugin-vanilla-extract",
|
||||||
"version": "1.4.1",
|
"version": "1.4.2",
|
||||||
"description": "ESLint plugin for enforcing CSS ordering in vanilla-extract styles",
|
"description": "ESLint plugin for enforcing CSS ordering in vanilla-extract styles",
|
||||||
"author": "Ante Budimir",
|
"author": "Ante Budimir",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import customOrderRule from './css-rules/custom-order/rule-definition.js';
|
||||||
export const vanillaExtract = {
|
export const vanillaExtract = {
|
||||||
meta: {
|
meta: {
|
||||||
name: '@antebudimir/eslint-plugin-vanilla-extract',
|
name: '@antebudimir/eslint-plugin-vanilla-extract',
|
||||||
version: '1.4.1',
|
version: '1.4.2',
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
'alphabetical-order': alphabeticalOrderRule,
|
'alphabetical-order': alphabeticalOrderRule,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue