Skip to content

Commit 53d616e

Browse files
committed
build: move inlined script to file in _tools/scripts
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent acbc377 commit 53d616e

File tree

2 files changed

+41
-12
lines changed

2 files changed

+41
-12
lines changed

.github/workflows/generate_monthly_changelog.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -101,18 +101,7 @@ jobs:
101101
- name: 'Generate changelog for last month'
102102
run: |
103103
UNTIL=$(date +"%Y-%m-01")
104-
node -e "
105-
var generate = require( '@stdlib/_tools/changelog/generate' );
106-
var changelog = generate( '@stdlib', {
107-
'flags': {
108-
'since': '$UNTIL - 1 month',
109-
'until': '$UNTIL'
110-
},
111-
'format': 'aggregated'
112-
});
113-
console.log( changelog.content );
114-
115-
" > ./www-blog-monthly-changelog/monthly_changelog_${UNTIL//-/_}.md
104+
node lib/node_modules/@stdlib/_tools/scripts/generate_monthly_changelog.js > ./www-blog-monthly-changelog/monthly_changelog_${UNTIL//-/_}.md
116105
117106
# Import GPG key to sign commits:
118107
- name: 'Import GPG key to sign commits'
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#!/usr/bin/env node
2+
3+
/**
4+
* @license Apache-2.0
5+
*
6+
* Copyright (c) 2025 The Stdlib Authors.
7+
*
8+
* Licensed under the Apache License, Version 2.0 (the "License");
9+
* you may not use this file except in compliance with the License.
10+
* You may obtain a copy of the License at
11+
*
12+
* http://www.apache.org/licenses/LICENSE-2.0
13+
*
14+
* Unless required by applicable law or agreed to in writing, software
15+
* distributed under the License is distributed on an "AS IS" BASIS,
16+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
* See the License for the specific language governing permissions and
18+
* limitations under the License.
19+
*/
20+
21+
/* eslint-disable no-console */
22+
23+
'use strict';
24+
25+
// MODULES //
26+
27+
var generate = require( '@stdlib/_tools/changelog/generate' );
28+
29+
30+
// MAIN //
31+
32+
var changelog = generate( '@stdlib', {
33+
'flags': {
34+
'since': '$UNTIL - 1 month',
35+
'until': '$UNTIL'
36+
},
37+
'format': 'aggregated'
38+
});
39+
40+
console.log( changelog.content );

0 commit comments

Comments
 (0)