Skip to content

Commit

Permalink
feat: publish on GitHub registry
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Sep 25, 2019
1 parent c765b62 commit 3ae9bd1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/semantic-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
echo "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" > ~/.npmrc
npm i --no-save semantic-release@next
npx semantic-release
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Bifravst TypeScript ESLint Config [![npm version](https://img.shields.io/npm/v/@bifravst/eslint-config-typescript.svg)](https://www.npmjs.com/package/@bifravst/eslint-config-typescript)
# Bifravst TypeScript ESLint Config

[![GitHub Actions](https://github.com/bifravst/eslint-config-typescript/workflows/Semantic%20Release/badge.svg)](https://github.com/bifravst/eslint-config-typescript/actions)
[![Greenkeeper badge](https://badges.greenkeeper.io/bifravst/eslint-config-typescript.svg)](https://greenkeeper.io/)
Expand All @@ -12,3 +12,12 @@ ESLint configuration (with
for all Bifravst projects.

See [@bifravst/code-style](https://github.com/bifravst/code-style) for usage.

## Installation

> Note: This package is hosted on the GitHub package registry and
> [npm needs to be configured](https://help.github.com/en/articles/configuring-npm-for-use-with-github-package-registry#installing-a-package)
> in order to use it.
echo "@bifravst:registry=https://npm.pkg.github.com" >> .npmrc
npm i --save-dev @bifravst/eslint-config-typescript
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
"remoteTags": true
},
"publishConfig": {
"access": "public"
"access": "public",
"registry": "https://npm.pkg.github.com/"
},
"files": [
"package-lock.json",
Expand Down

0 comments on commit 3ae9bd1

Please sign in to comment.