Skip to content

Commit

Permalink
Merge branch 'release/5.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
titouanmathis committed Oct 26, 2023
2 parents cb4ef94 + 6e2acc2 commit e7f09bc
Show file tree
Hide file tree
Showing 14 changed files with 461 additions and 373 deletions.
36 changes: 2 additions & 34 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,46 +39,14 @@ jobs:
- name: Prepare the changelog from the tag message
id: prepare_changelog
run: |
echo "Setting release version to $GITHUB_REF_NAME"
PRERELEASE=false
# Check release type
if [[ $GITHUB_REF_NAME =~ 'alpha' || $GITHUB_REF_NAME =~ 'beta' ]]; then
if [[ $GITHUB_REF_NAME =~ 'alpha' || $GITHUB_REF_NAME =~ 'beta' || $GITHUB_REF_NAME =~ 'rc' ]]; then
echo "This is a prerelease."
PRERELEASE=true
fi
echo "is_prerelease=$PRERELEASE" >> $GITHUB_ENV
echo "Preparing changelog..."
CHANGELOG=$(git show $GITHUB_REF --no-patch --format='' | tail -n+6)
# Set markdown titles
CHANGELOG=${CHANGELOG/Added/## Added}
CHANGELOG=${CHANGELOG/Fixed/## Fixed}
CHANGELOG=${CHANGELOG/Changed/## Changed}
CHANGELOG=${CHANGELOG/Removed/## Removed}
CHANGELOG=${CHANGELOG/Deprecated/## Deprecated}
CHANGELOG=${CHANGELOG/Security/## Security}
# Remove PGP signature
CHANGELOG="${CHANGELOG%-----BEGIN*}"
echo "-----------------------------------------"
echo "$CHANGELOG"
# Change linebreaks and other special characters
CHANGELOG="${CHANGELOG//'%'/%25}"
CHANGELOG="${CHANGELOG//$'\n'/%0A}"
CHANGELOG="${CHANGELOG//$'\r'/%0D}"
echo "-----------------------------------------"
echo "Changelog prepared:"
echo $CHANGELOG
echo 'changelog<<EOF' >> $GITHUB_ENV
echo $CHANGELOG >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
# @see https://github.com/actions/create-release
- name: Create Release
id: create_release
Expand All @@ -88,6 +56,6 @@ jobs:
with:
tag_name: ${{ github.ref }}
release_name: v${{ github.ref_name }}
body: ${{ env.changelog }}
body: Please refer to [CHANGELOG.md](https://github.com/studiometa/webpack-config/blob/${{ github.ref_name }}/CHANGELOG.md) for details.
draft: false
prerelease: ${{ env.is_prerelease }}
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [v5.3.0](https://github.com/studiometa/ui/compare/5.2.3..5.3.0) (2023-10-26)

### Added

- Add a `meta link <path>[ --alias @]` command to easily create import aliases ([#139](https://github.com/studiometa/webpack-config/pull/139))

### Changed

- Update dependencies ([#135](https://github.com/studiometa/webpack-config/pull/135), [#136](https://github.com/studiometa/webpack-config/pull/136), [7e70fe2](https://github.com/studiometa/webpack-config/commit/7e70fe2))
- Update @studiometa/webpack-config-preset-vue-2 dependencies ([c1a4ff9](https://github.com/studiometa/webpack-config/commit/c1a4ff9))
- Update @studiometa/webpack-config-preset-vue-3 dependencies ([822af46](https://github.com/studiometa/webpack-config/commit/822af46))
- Update @studiometa/webpack-config dev dependencies ([b47b5fb](https://github.com/studiometa/webpack-config/commit/b47b5fb))
- Update @studiometa/webpack-config dependencies ([271d391](https://github.com/studiometa/webpack-config/commit/271d391))
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "studiometa/webpack-config",
"version": "5.2.3",
"version": "5.3.0",
"description": "PHP Helpers for @studiometa/webpack-config",
"type": "library",
"require": {
Expand Down
Loading

0 comments on commit e7f09bc

Please sign in to comment.