Skip to content

Commit 02ee06e

Browse files
committed
Merge branch 'release/2.0.1'
2 parents db1596c + b5f6b15 commit 02ee06e

File tree

4 files changed

+8324
-3101
lines changed

4 files changed

+8324
-3101
lines changed

.github/workflows/release.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- '*.*.*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
fetch-depth: '0'
15+
16+
- uses: actions/setup-node@v2
17+
with:
18+
node-version: 16
19+
cache: npm
20+
registry-url: https://registry.npmjs.org/
21+
22+
- run: |
23+
ls -al
24+
VERSION=${GITHUB_REF/refs\/tags\//}
25+
TAG='latest'
26+
if [[ $VERSION =~ 'alpha' || $VERSION =~ 'beta' || $VERSION =~ 'rc' ]]; then
27+
TAG='next'
28+
fi
29+
npm publish --tag $TAG
30+
env:
31+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
32+
33+
# @see https://github.com/actions/create-release/issues/38#issuecomment-715327220
34+
# @see https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#environment-files
35+
- name: Prepare the changelog from the tag message
36+
id: prepare_changelog
37+
run: |
38+
# Parse version
39+
VERSION=${GITHUB_REF/refs\/tags\//}
40+
echo "Setting release version to $VERSION"
41+
echo "release_version=$VERSION" >> $GITHUB_ENV
42+
43+
echo "$GITHUB_REF"
44+
echo "$GITHUB_REF_NAME"
45+
46+
PRERELEASE=false
47+
# Check release type
48+
if [[ $VERSION =~ 'alpha' || $VERSION =~ 'beta' || $VERSION =~ 'rc' ]]; then
49+
echo "This is a prerelease."
50+
PRERELEASE=true
51+
fi
52+
echo "is_prerelease=$PRERELEASE" >> $GITHUB_ENV
53+
54+
# @see https://github.com/actions/create-release
55+
- name: Create Release
56+
id: create_release
57+
uses: actions/create-release@v1
58+
env:
59+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
with:
61+
tag_name: ${{ github.ref }}
62+
release_name: v${{ env.release_version }}
63+
draft: false
64+
prerelease: ${{ env.is_prerelease }}

index.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
module.exports = {
2-
extends: [
3-
'stylelint-config-recommended',
4-
'stylelint-config-recommended-scss',
5-
require.resolve('./rules/property-order.js'),
6-
require.resolve('./rules/selector.js'),
7-
],
2+
customSyntax: 'postcss-scss',
3+
extends: [require.resolve('./rules/property-order.js'), require.resolve('./rules/selector.js')],
84
plugins: ['stylelint-high-performance-animation'],
95
rules: {
106
indentation: [2, { baseIndentLevel: 1 }],

0 commit comments

Comments
 (0)