forked from postcss/postcss-nested
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'source/main' into temp
- Loading branch information
Showing
9 changed files
with
2,255 additions
and
1,578 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Release | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
permissions: | ||
contents: write | ||
jobs: | ||
release: | ||
name: Release On Tag | ||
if: startsWith(github.ref, 'refs/tags/') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v4 | ||
- name: Extract the changelog | ||
id: changelog | ||
run: | | ||
TAG_NAME=${GITHUB_REF/refs\/tags\//} | ||
READ_SECTION=false | ||
CHANGELOG="" | ||
while IFS= read -r line; do | ||
if [[ "$line" =~ ^#+\ +(.*) ]]; then | ||
if [[ "${BASH_REMATCH[1]}" == "$TAG_NAME" ]]; then | ||
READ_SECTION=true | ||
elif [[ "$READ_SECTION" == true ]]; then | ||
break | ||
fi | ||
elif [[ "$READ_SECTION" == true ]]; then | ||
CHANGELOG+="$line"$'\n' | ||
fi | ||
done < "CHANGELOG.md" | ||
CHANGELOG=$(echo "$CHANGELOG" | awk '/./ {$1=$1;print}') | ||
echo "changelog_content<<EOF" >> $GITHUB_OUTPUT | ||
echo "$CHANGELOG" >> $GITHUB_OUTPUT | ||
echo "EOF" >> $GITHUB_OUTPUT | ||
- name: Create the release | ||
if: steps.changelog.outputs.changelog_content != '' | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
name: ${{ github.ref_name }} | ||
body: '${{ steps.changelog.outputs.changelog_content }}' | ||
draft: false | ||
prerelease: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import loguxConfig from '@logux/eslint-config' | ||
|
||
export default [...loguxConfig] |
Oops, something went wrong.