mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2024-12-27 13:05:47 +00:00
Add type
This commit is contained in:
parent
920661f1be
commit
a9f1343a9a
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ export function configAuthentication(registryUrl: string) {
|
||||||
|
|
||||||
function writeRegistryToFile(registryUrl: string, fileLocation: string) {
|
function writeRegistryToFile(registryUrl: string, fileLocation: string) {
|
||||||
core.debug(`Setting auth in ${fileLocation}`);
|
core.debug(`Setting auth in ${fileLocation}`);
|
||||||
let newContents = '';
|
let newContents: string = '';
|
||||||
if (fs.existsSync(fileLocation)) {
|
if (fs.existsSync(fileLocation)) {
|
||||||
const curContents: string = fs.readFileSync(fileLocation, 'utf8');
|
const curContents: string = fs.readFileSync(fileLocation, 'utf8');
|
||||||
curContents.split(os.EOL).forEach((line: string) => {
|
curContents.split(os.EOL).forEach((line: string) => {
|
||||||
|
|
Loading…
Reference in a new issue