@gesslar/lpc-mcp 1.0.3 → 1.1.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.
- package/.github/workflows/Quality.yaml +38 -47
- package/.github/workflows/Release.yaml +45 -31
- package/package.json +1 -1
|
@@ -10,6 +10,35 @@ on:
|
|
|
10
10
|
- cron: "20 14 * * 1"
|
|
11
11
|
|
|
12
12
|
jobs:
|
|
13
|
+
### CONFIGURATION ###################################################
|
|
14
|
+
#
|
|
15
|
+
### PACKAGE MANAGER
|
|
16
|
+
#
|
|
17
|
+
# Set the package manager to use: 'npm' or 'pnpm'
|
|
18
|
+
# This will configure the appropriate setup and commands throughout
|
|
19
|
+
# the workflow.
|
|
20
|
+
#
|
|
21
|
+
# Example: PACKAGE_MANAGER="pnpm"
|
|
22
|
+
# PACKAGE_MANAGER="npm"
|
|
23
|
+
#
|
|
24
|
+
### LINTING #########################################################
|
|
25
|
+
#
|
|
26
|
+
# If we need to perform linting, set the value to 'yes'. Any other
|
|
27
|
+
# value will skip linting.
|
|
28
|
+
#
|
|
29
|
+
# Example: PERFORM_LINTING="yes"
|
|
30
|
+
# PERFORM_LINTING="no"
|
|
31
|
+
#
|
|
32
|
+
### TESTING #########################################################
|
|
33
|
+
#
|
|
34
|
+
# If we need to perform testing, set the value to 'yes'. Any other
|
|
35
|
+
# value will skip testing.
|
|
36
|
+
#
|
|
37
|
+
# Example: PERFORM_TESTING="yes"
|
|
38
|
+
# PERFORM_TESTING="no"
|
|
39
|
+
#
|
|
40
|
+
#####################################################################
|
|
41
|
+
|
|
13
42
|
ConfigureWorkflow:
|
|
14
43
|
runs-on: ubuntu-latest
|
|
15
44
|
permissions: {}
|
|
@@ -23,12 +52,13 @@ jobs:
|
|
|
23
52
|
- name: Configure workflow
|
|
24
53
|
id: cfg
|
|
25
54
|
run: |+
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
55
|
+
#############################################################
|
|
56
|
+
PACKAGE_MANAGER="pnpm"
|
|
57
|
+
PERFORM_LINTING="yes"
|
|
58
|
+
PERFORM_TESTING="no"
|
|
59
|
+
#############################################################
|
|
31
60
|
|
|
61
|
+
# Apply configuration
|
|
32
62
|
PACKAGE_MANAGER="pnpm"
|
|
33
63
|
echo "package_manager=${PACKAGE_MANAGER}" >> "$GITHUB_OUTPUT"
|
|
34
64
|
|
|
@@ -39,19 +69,8 @@ jobs:
|
|
|
39
69
|
echo "pm_install_cmd=npm ci" >> "$GITHUB_OUTPUT"
|
|
40
70
|
fi
|
|
41
71
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
# If we need to perform linting, set the value to 'yes'. Any other
|
|
45
|
-
# value will skip linting.
|
|
46
|
-
|
|
47
|
-
echo "perform_linting=yes" >> "$GITHUB_OUTPUT"
|
|
48
|
-
|
|
49
|
-
### TESTING #########################################################
|
|
50
|
-
#
|
|
51
|
-
# If we need to perform testing, set the value to 'yes'. Any other
|
|
52
|
-
# value will skip testing.
|
|
53
|
-
|
|
54
|
-
echo "perform_testing=no" >> "$GITHUB_OUTPUT"
|
|
72
|
+
echo "perform_linting=${PERFORM_LINTING}" >> "$GITHUB_OUTPUT"
|
|
73
|
+
echo "perform_testing=${PERFORM_TESTING}" >> "$GITHUB_OUTPUT"
|
|
55
74
|
|
|
56
75
|
Lint:
|
|
57
76
|
needs: ConfigureWorkflow
|
|
@@ -150,42 +169,14 @@ jobs:
|
|
|
150
169
|
- name: Checkout repository
|
|
151
170
|
uses: actions/checkout@v4
|
|
152
171
|
|
|
153
|
-
# Add any setup steps before running the `github/codeql-action/init` action.
|
|
154
|
-
# This includes steps like installing compilers or runtimes (`actions/setup-node`
|
|
155
|
-
# or others). This is typically only required for manual builds.
|
|
156
|
-
# - name: Setup runtime (example)
|
|
157
|
-
# uses: actions/setup-example@v1
|
|
158
|
-
|
|
159
|
-
# Initializes the CodeQL tools for scanning.
|
|
160
172
|
- name: Initialize CodeQL
|
|
161
173
|
uses: github/codeql-action/init@v4
|
|
162
174
|
with:
|
|
163
175
|
languages: ${{ matrix.language }}
|
|
164
176
|
build-mode: ${{ matrix.build-mode }}
|
|
165
|
-
#
|
|
166
|
-
# By default, queries listed here will override any specified in a config file.
|
|
167
|
-
# Prefix the list here with "+" to use these queries and those in the config file.
|
|
168
|
-
|
|
169
|
-
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-[...]
|
|
177
|
+
# Uncomment to enable stricter security queries:
|
|
170
178
|
# queries: security-extended,security-and-quality
|
|
171
179
|
|
|
172
|
-
# If the analyze step fails for one of the languages you are analyzing with
|
|
173
|
-
# "We were unable to automatically build your code", modify the matrix above
|
|
174
|
-
# to set the build mode to "manual" for that language. Then modify this step
|
|
175
|
-
# to build your code.
|
|
176
|
-
# ℹ️ Command-line programs to run using the OS shell.
|
|
177
|
-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
|
|
178
|
-
- name: Run manual build steps
|
|
179
|
-
if: matrix.build-mode == 'manual'
|
|
180
|
-
shell: bash
|
|
181
|
-
run: |
|
|
182
|
-
echo 'If you are using a "manual" build mode for one or more of the' \
|
|
183
|
-
'languages you are analyzing, replace this with the commands to build' \
|
|
184
|
-
'your code, for example:'
|
|
185
|
-
echo ' make bootstrap'
|
|
186
|
-
echo ' make release'
|
|
187
|
-
exit 1
|
|
188
|
-
|
|
189
180
|
- name: Perform CodeQL Analysis
|
|
190
181
|
uses: github/codeql-action/analyze@v4
|
|
191
182
|
with:
|
|
@@ -11,22 +11,47 @@ on:
|
|
|
11
11
|
- main
|
|
12
12
|
|
|
13
13
|
jobs:
|
|
14
|
+
### CONFIGURATION ###################################################
|
|
15
|
+
#
|
|
16
|
+
### QUALITY CHECK WORKFLOW
|
|
17
|
+
#
|
|
18
|
+
# If you want to wait for a quality workflow to complete before
|
|
19
|
+
# creating a release, specify its name here. Leave empty to skip.
|
|
20
|
+
#
|
|
21
|
+
# Example: QUALITY_CHECK="CodeQL, Linting, Testing"
|
|
22
|
+
# QUALITY_CHECK=""
|
|
23
|
+
#
|
|
24
|
+
### GIT CONFIGURATION
|
|
25
|
+
#
|
|
26
|
+
# Configure the Git user for tagging operations.
|
|
27
|
+
#
|
|
28
|
+
# Example: GIT_USER_NAME="github-actions"
|
|
29
|
+
# GIT_USER_EMAIL="github-actions@github.com"
|
|
30
|
+
#
|
|
31
|
+
#####################################################################
|
|
32
|
+
|
|
14
33
|
ConfigureWorkflow:
|
|
15
34
|
runs-on: ubuntu-latest
|
|
16
35
|
|
|
17
36
|
outputs:
|
|
18
37
|
quality_check: ${{ steps.cfg.outputs.quality_check }}
|
|
38
|
+
git_user_name: ${{ steps.cfg.outputs.git_user_name }}
|
|
39
|
+
git_user_email: ${{ steps.cfg.outputs.git_user_email }}
|
|
19
40
|
|
|
20
41
|
steps:
|
|
21
42
|
- name: Configure workflow
|
|
22
43
|
id: cfg
|
|
23
44
|
run: |+
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
45
|
+
#############################################################
|
|
46
|
+
QUALITY_CHECK="CodeQL, Linting, Testing"
|
|
47
|
+
GIT_USER_NAME="github-actions"
|
|
48
|
+
GIT_USER_EMAIL="github-actions@github.com"
|
|
49
|
+
#############################################################
|
|
28
50
|
|
|
29
|
-
|
|
51
|
+
# Apply configuration
|
|
52
|
+
echo "quality_check=${QUALITY_CHECK}" >> "$GITHUB_OUTPUT"
|
|
53
|
+
echo "git_user_name=${GIT_USER_NAME}" >> "$GITHUB_OUTPUT"
|
|
54
|
+
echo "git_user_email=${GIT_USER_EMAIL}" >> "$GITHUB_OUTPUT"
|
|
30
55
|
|
|
31
56
|
WaitForQuality:
|
|
32
57
|
needs: ConfigureWorkflow
|
|
@@ -86,10 +111,6 @@ jobs:
|
|
|
86
111
|
permissions:
|
|
87
112
|
contents: write
|
|
88
113
|
|
|
89
|
-
env:
|
|
90
|
-
GIT_USER_NAME: "github-actions"
|
|
91
|
-
GIT_USER_EMAIL: "github-actions@github.com"
|
|
92
|
-
|
|
93
114
|
outputs:
|
|
94
115
|
new_tag: ${{ steps.check_tag.outputs.new_tag }}
|
|
95
116
|
|
|
@@ -99,15 +120,13 @@ jobs:
|
|
|
99
120
|
|
|
100
121
|
- name: Setup Git Variables
|
|
101
122
|
run: |+
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
git config user.name "${GIT_USER_NAME}"
|
|
105
|
-
git config user.email "${GIT_USER_EMAIL}"
|
|
123
|
+
git config user.name "${{ needs.ConfigureWorkflow.outputs.git_user_name }}"
|
|
124
|
+
git config user.email "${{ needs.ConfigureWorkflow.outputs.git_user_email }}"
|
|
106
125
|
|
|
107
126
|
- name: Set up Node.js
|
|
108
127
|
uses: actions/setup-node@v6
|
|
109
128
|
with:
|
|
110
|
-
node-version:
|
|
129
|
+
node-version: 22
|
|
111
130
|
|
|
112
131
|
- name: Install dependencies
|
|
113
132
|
run: npm install
|
|
@@ -140,7 +159,7 @@ jobs:
|
|
|
140
159
|
fi
|
|
141
160
|
|
|
142
161
|
PrepareGitHubRelease:
|
|
143
|
-
needs: CreateTag
|
|
162
|
+
needs: [ConfigureWorkflow, CreateTag]
|
|
144
163
|
runs-on: ubuntu-latest
|
|
145
164
|
if: ${{ needs.CreateTag.outputs.new_tag != '🙅🏻♂️' }}
|
|
146
165
|
|
|
@@ -149,8 +168,6 @@ jobs:
|
|
|
149
168
|
|
|
150
169
|
env:
|
|
151
170
|
NEW_TAG: ${{ needs.CreateTag.outputs.new_tag }}
|
|
152
|
-
GIT_USER_NAME: "github-actions"
|
|
153
|
-
GIT_USER_EMAIL: "github-actions@github.com"
|
|
154
171
|
|
|
155
172
|
steps:
|
|
156
173
|
- name: Setup New Tag
|
|
@@ -162,15 +179,13 @@ jobs:
|
|
|
162
179
|
|
|
163
180
|
- name: Setup Git Variables
|
|
164
181
|
run: |
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
git config user.name "${GIT_USER_NAME}"
|
|
168
|
-
git config user.email "${GIT_USER_EMAIL}"
|
|
182
|
+
git config user.name "${{ needs.ConfigureWorkflow.outputs.git_user_name }}"
|
|
183
|
+
git config user.email "${{ needs.ConfigureWorkflow.outputs.git_user_email }}"
|
|
169
184
|
|
|
170
185
|
- name: Set up Node.js
|
|
171
186
|
uses: actions/setup-node@v6
|
|
172
187
|
with:
|
|
173
|
-
node-version:
|
|
188
|
+
node-version: 22
|
|
174
189
|
|
|
175
190
|
- name: Install dependencies
|
|
176
191
|
run: npm install
|
|
@@ -181,14 +196,13 @@ jobs:
|
|
|
181
196
|
echo "ARTEFACT=${ARTEFACT}" >> $GITHUB_ENV
|
|
182
197
|
|
|
183
198
|
- name: Create Release
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
generateReleaseNotes: true
|
|
199
|
+
env:
|
|
200
|
+
GH_TOKEN: ${{ secrets. GITHUB_TOKEN }}
|
|
201
|
+
run: >
|
|
202
|
+
gh release create "${{ env.NEW_TAG }}"
|
|
203
|
+
--title "Release ${{ env.NEW_TAG }}"
|
|
204
|
+
--generate-notes
|
|
205
|
+
"${{ env.ARTEFACT }}"
|
|
192
206
|
|
|
193
207
|
PublishToNPM:
|
|
194
208
|
needs: DetermineVersion
|
|
@@ -207,7 +221,7 @@ jobs:
|
|
|
207
221
|
- name: Set up Node.js
|
|
208
222
|
uses: actions/setup-node@v6
|
|
209
223
|
with:
|
|
210
|
-
node-version:
|
|
224
|
+
node-version: 22
|
|
211
225
|
|
|
212
226
|
- name: Ship it
|
|
213
227
|
run: |
|
package/package.json
CHANGED