Skip to content

Commit

Permalink
Merge branch 'release/4.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
titouanmathis committed Apr 11, 2024
2 parents dbba56a + cfc6375 commit 97cee8b
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 70 deletions.
25 changes: 7 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,14 @@ on:

jobs:
release:
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
fetch-depth: '0'

- uses: actions/setup-node@v2
with:
node-version: 16
node-version: 20
cache: npm
registry-url: https://registry.npmjs.org/

- run: |
ls -al
VERSION=${GITHUB_REF/refs\/tags\//}
Expand All @@ -35,17 +31,9 @@ jobs:
- name: Prepare the changelog from the tag message
id: prepare_changelog
run: |
# Parse version
VERSION=${GITHUB_REF/refs\/tags\//}
echo "Setting release version to $VERSION"
echo "release_version=$VERSION" >> $GITHUB_ENV
echo "$GITHUB_REF"
echo "$GITHUB_REF_NAME"
PRERELEASE=false
# Check release type
if [[ $VERSION =~ 'alpha' || $VERSION =~ 'beta' || $VERSION =~ 'rc' ]]; then
if [[ $GITHUB_REF_NAME =~ 'alpha' || $GITHUB_REF_NAME =~ 'beta' || $GITHUB_REF_NAME =~ 'rc' ]]; then
echo "This is a prerelease."
PRERELEASE=true
fi
Expand All @@ -59,6 +47,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: v${{ env.release_version }}
release_name: v${{ github.ref_name }}
body: Please refer to [CHANGELOG.md](https://github.com/studiometa/stylelint-config/blob/${{ github.ref_name }}/CHANGELOG.md) for details.
draft: false
prerelease: ${{ env.is_prerelease }}
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# 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]

## [v4.0.0](https://github.com/studiometa/js-toolkit/compare/3.0.2..4.0.0) (2023-04-11)

### Changed

- ⚠️ Update @studiometa/prettier-config v3 → v4 ([f5dfab0](https://github.com/studiometa/stylelint-config/commit/f5dfab0))
- ⚠️ Update peer dependencies constraints ([fc90347](https://github.com/studiometa/stylelint-config/commit/fc90347), [6e74c45](https://github.com/studiometa/stylelint-config/commit/6e74c45))
- ⚠️ Migrate to ESM only ([fc2392c](https://github.com/studiometa/stylelint-config/commit/fc2392c))
- Update Node from 16 to 20 ([044d7b1](https://github.com/studiometa/stylelint-config/commit/044d7b1))
- Update dependencies ([ba1ebdb](https://github.com/studiometa/stylelint-config/commit/ba1ebdb))
104 changes: 54 additions & 50 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@studiometa/stylelint-config",
"version": "4.0.0-alpha.1",
"version": "4.0.0",
"description": "StyleLint Configuration",
"main": "index.js",
"type": "module",
Expand All @@ -22,7 +22,7 @@
"homepage": "https://github.com/studiometa/stylelint-config#readme",
"devDependencies": {
"@studiometa/eslint-config": "^3.1.3",
"@studiometa/prettier-config": "^3.0.0",
"@studiometa/prettier-config": "^4.0.0",
"eslint": "^8.56.0",
"prettier": "^3.1.1",
"stylelint": "^16.1.0"
Expand Down

0 comments on commit 97cee8b

Please sign in to comment.