@kununu/eslint-config 2.3.0 → 2.4.0

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,58 @@
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@v3
23
+ with:
24
+ fetch-depth: 0
25
+ token: ${{ secrets.KUNUNU_BOT_GITHUB_TOKEN }}
26
+
27
+ - name: Setup Node
28
+ uses: actions/setup-node@v3
29
+ with:
30
+ node-version: '16'
31
+ cache: 'npm'
32
+
33
+ - name: Setup git
34
+ run: |
35
+ git config user.name "kununu-bot"
36
+ git config user.email "technik@kununu.com"
37
+
38
+ - name: Install Packages
39
+ run: npm ci
40
+
41
+ - name: Bump Package Version
42
+ run: |
43
+ npm version ${{ github.event.inputs.version }}
44
+
45
+ - name: Publish
46
+ run: |
47
+ npm publish
48
+ env:
49
+ NPM_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}
50
+
51
+ - name: Create Github Release
52
+ run: |
53
+ gh release create $(sed -nr 's/^\s*\"version": "([0-9]{1,}\.[0-9]{1,}.*)",$/\1/p' package.json) --generate-notes
54
+ env:
55
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56
+
57
+ - name: Push Version Changes
58
+ 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.4.0",
4
4
  "description": "kununu's ESLint config",
5
5
  "main": "index.js",
6
6
  "repository": "kununu/eslint-config",