@kununu/eslint-config 2.3.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,55 @@
1
+ name: Release
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ version:
7
+ description: 'Semver version (major / minor / patch)'
8
+
9
+ required: true
10
+ type: choice
11
+ options:
12
+ - patch
13
+ - minor
14
+ - major
15
+
16
+ jobs:
17
+ release:
18
+ runs-on: ubuntu-latest
19
+
20
+ steps:
21
+ - name: Checkout Source
22
+ uses: actions/checkout@v2
23
+
24
+ - name: Setup Node
25
+ uses: actions/setup-node@v2
26
+ with:
27
+ node-version: '16'
28
+ cache: 'npm'
29
+
30
+ - name: Setup git
31
+ run: |
32
+ git config user.name 'github-action'
33
+ git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
34
+
35
+ - name: Install Packages
36
+ run: npm ci
37
+
38
+ - name: Bump Package Version
39
+ run: |
40
+ npm version ${{ github.event.inputs.version }}
41
+
42
+ - name: Publish
43
+ run: |
44
+ npm publish
45
+ env:
46
+ NPM_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}
47
+
48
+ - name: Create Github Release
49
+ run: |
50
+ gh release create $(sed -nr 's/^\s*\"version": "([0-9]{1,}\.[0-9]{1,}.*)",$/\1/p' package.json) --generate-notes
51
+ env:
52
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53
+
54
+ - name: Push Version Changes
55
+ run: git push origin ${GITHUB_REF##*/} --follow-tags
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kununu/eslint-config",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "kununu's ESLint config",
5
5
  "main": "index.js",
6
6
  "repository": "kununu/eslint-config",