Skip to content

Commit 2fc7ad7

Browse files
committed
build: enable npm publish provenance
1 parent ad45e04 commit 2fc7ad7

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

lib/node_modules/@stdlib/_tools/scripts/publish_packages.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ var CLI_INSTALLATION_SECTION = [
133133
].join( '\n' );
134134

135135
var mainDir = join( __dirname, '..', '..', '..', '..', '..' );
136-
var DOTFILES = [ '.editorconfig', '.gitignore', '.gitattributes', '.npmrc', 'CONTRIBUTORS', 'NOTICE', 'CITATION.cff' ];
136+
var DOTFILES = [ '.editorconfig', '.gitignore', '.gitattributes', 'CONTRIBUTORS', 'NOTICE', 'CITATION.cff' ];
137137

138138
var WORKFLOW_CLOSE_PULLS = [
139139
'#/',
@@ -740,6 +740,7 @@ function publish( pkg, clbk ) {
740740
customLicense = false;
741741
}
742742
fs.copyFileSync( join( __dirname, 'templates', '.npmignore.txt' ), join( dist, '.npmignore' ) );
743+
fs.copyFileSync( join( __dirname, 'templates', '.npmrc.txt' ), join( dist, '.npmrc' ) );
743744
fs.copyFileSync( join( __dirname, 'templates', 'Makefile.txt' ), join( dist, 'Makefile' ) );
744745
fs.copyFileSync( join( __dirname, 'templates', '.eslintrc.js.txt' ), join( dist, '.eslintrc.js' ) );
745746
writeFileSync( join( dist, 'CHANGELOG.md' ), replace( CHANGELOG, '<pkg>', distPkg ) );
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#/
2+
# @license Apache-2.0
3+
#
4+
# Copyright (c) 2024 The Stdlib Authors.
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#/
18+
19+
# Configuration for [npm][1].
20+
#
21+
# [1]: https://docs.npmjs.com/files/npmrc
22+
23+
# Disable the creation of a lock file:
24+
package-lock = false
25+
shrinkwrap = false
26+
27+
# Disable automatically "saving" dependencies on install:
28+
save = false
29+
30+
# Generate provenance metadata:
31+
provenance = true

0 commit comments

Comments
 (0)