Skip to content

Commit f5bd547

Browse files
committed
feat: use NPM registry
See bifravst/bifravst#47
1 parent 7d41dae commit f5bd547

File tree

4 files changed

+5
-14
lines changed

4 files changed

+5
-14
lines changed

.github/workflows/semantic-release.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- saga
77

88
env:
9-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1010

1111
jobs:
1212
release:
@@ -22,9 +22,8 @@ jobs:
2222
sudo npm install -g npm@
2323
npm config set update-notifier false
2424
sudo chown -R $USER:$(id -gn $USER) /home/runner/.config
25-
- name: Authenticate with NPM
26-
run: |
27-
echo "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" > ~/.npmrc
25+
- name: Authenticate with NPM registry
26+
run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
2827
- name: Keep npm cache around to speed up installs
2928
uses: actions/cache@v1
3029
with:

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
# Bifravst TypeScript ESLint Config
1+
# 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)
22

3-
[![GitHub Package Registry version](https://img.shields.io/github/release/bifravst/eslint-config-typescript.svg?label=GPR&logo=github)](https://github.com/bifravst/eslint-config-typescript/packages/26698)
43
[![GitHub Actions](https://github.com/bifravst/eslint-config-typescript/workflows/Semantic%20Release/badge.svg)](https://github.com/bifravst/eslint-config-typescript/actions)
54
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
65
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
@@ -15,9 +14,4 @@ See [@bifravst/code-style](https://github.com/bifravst/code-style) for usage.
1514

1615
## Installation
1716

18-
> Note: This package is hosted on the GitHub package registry and
19-
> [npm needs to be configured](https://help.github.com/en/articles/configuring-npm-for-use-with-github-package-registry#installing-a-package)
20-
> in order to use it.
21-
22-
echo "@bifravst:registry=https://npm.pkg.github.com" >> .npmrc
2317
npm i --save-dev @bifravst/eslint-config-typescript

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@
5656
"remoteTags": true
5757
},
5858
"publishConfig": {
59-
"access": "public",
60-
"registry": "https://npm.pkg.github.com/"
59+
"access": "public"
6160
},
6261
"files": [
6362
"package-lock.json",

0 commit comments

Comments
 (0)