Skip to content

Commit

Permalink
gh-packages
Browse files Browse the repository at this point in the history
  • Loading branch information
mastashake08 committed Jan 20, 2023
1 parent 0839dea commit e6ef498
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/gh-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish package to GitHub Packages
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://npm.pkg.github.com'
# Defaults to the user or organization that owns the workflow file
scope: '@mastashake098'
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.PACKAGES_TOKEN }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ Interact with the [Project Gutenburg](https://www.gutenberg.org/) ebook metadeta
- Share ebooks

```
npm install @mastashake08/gutendex
npm install gutendex
```

### Import
```
import Gutendex from '@mastashake08/Gutendex'
import Gutendex from 'gutendex'
```

### Instantiate A New Instance
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": "gutendex",
"version": "0.0.1",
"version": "0.0.2",
"description": "npm package for interacting with the Project Gutenberg ebook metadata catalog using the Gutendex API. Can be sel-hosted or cloud.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit e6ef498

Please sign in to comment.