File tree Expand file tree Collapse file tree 4 files changed +8324
-3101
lines changed Expand file tree Collapse file tree 4 files changed +8324
-3101
lines changed Original file line number Diff line number Diff line change
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 }}
Original file line number Diff line number Diff line change 1
1
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' ) ] ,
8
4
plugins : [ 'stylelint-high-performance-animation' ] ,
9
5
rules : {
10
6
indentation : [ 2 , { baseIndentLevel : 1 } ] ,
You can’t perform that action at this time.
0 commit comments