Skip to content

Commit 0617fbb

Browse files
committed
publish to GitHub npm registry
1 parent a46e83d commit 0617fbb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ungit
22
======
3-
[![NPM version](https://badge.fury.io/js/ungit.svg)](https://badge.fury.io/js/ungit)
3+
[![Release](https://img.shields.io/github/v/release/FredrikNoren/ungit)](https://github.com/FredrikNoren/ungit/releases)
44
[![CI](https://github.com/FredrikNoren/ungit/actions/workflows/ci.yml/badge.svg)](https://github.com/FredrikNoren/ungit/actions/workflows/ci.yml)
55
[![Join the chat at https://gitter.im/FredrikNoren/ungit](https://badges.gitter.im/FredrikNoren/ungit.svg)](https://gitter.im/FredrikNoren/ungit?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
66

scripts/npmpublish.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = async ({ github, context, core, exec }) => {
99
const tag = `v${version}`;
1010
packageJson.version += `+${hash}`;
1111
await fs.writeFile('package.json', `${JSON.stringify(packageJson, null, 2)}\n`);
12-
await fs.writeFile('.npmrc', '//registry.npmjs.org/:_authToken=' + process.env.NPM_TOKEN);
12+
await fs.writeFile('.npmrc', '//npm.pkg.github.com/:_authToken=' + process.env.GITHUB_TOKEN);
1313
core.info(`Publish ${packageJson.version} to npm`);
1414
try {
1515
if ((await exec.exec('npm publish')) != 0) {

0 commit comments

Comments
 (0)