Skip to content

Commit

Permalink
fix github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mits87 committed Feb 3, 2021
1 parent 877b778 commit 7e92f89
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,32 @@ jobs:
- run: npm ci
- run: npm test

publish-to-github:
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
scope: '@mits87'
- run: npm publish
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

publish-to-npmjs:
publish-gpr:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: 'https://registry.npmjs.org'
registry-url: https://npm.pkg.github.com/
scope: '@mits87'
- run: npm ci
- run: npm publish --access public
- run: echo registry=https://npm.pkg.github.com/mits87 >> .npmrc
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Node Email Domain Blacklist
# Node Disposable Email Provider Domains List

A nodejs wrapper for the disposable email provider domains list.

Expand All @@ -7,15 +7,15 @@ A nodejs wrapper for the disposable email provider domains list.
Require this package with composer:

```
npm install email-domain-blacklist
npm install disposable-email-provider-domains
```

# Usage

Require `email-domain-blacklist` to your file.
Require `disposable-email-provider-domains` to your file.

```js
const { domains } = require('email-domain-blacklist');
const { domains } = require('disposable-email-provider-domains');

console.log(domains);
```
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "disposable-email-provider-domains",
"version": "1.0.2",
"version": "1.0.3",
"description": "A package with disposable email provider domains",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 7e92f89

Please sign in to comment.