Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
WHOOOP authored and WHOOOP committed Feb 22, 2023
2 parents 2c3ad00 + bd682a9 commit 3c93124
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 4 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Node.js Packageeee

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: npm install

publish-gpr:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_KEY}}
3 changes: 2 additions & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Node.js Package
name: Publish to NPM

on:
release:
Expand All @@ -16,6 +16,7 @@ jobs:
with:
node-version: 16
- run: npm ci
- run: npm install

publish-npm:
needs: build
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": "passport-roblox",
"version": "0.1",
"version": "0.0.1",
"description": "Passport strategy for [Roblox](https://roblox.com)",
"main": "lib/index.js",
"directories": {
Expand Down
6 changes: 4 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
`npm intall passport-roblox`

### Configure
This stradegy uses the Roblox profile scope. The configuration requires clientID, clientSecret, a callback URL, and a scope
This strategy uses the Roblox profile scope. The configuration requires clientID, clientSecret, a callback URL, and a scope.
Client ID, Secret and applicable scopes can be found during creation of a Roblox OAuth2 application on the [Creator Dashboard](https://create.roblox.com/credentials).

```js
passport.use(new passportroblox({
clientID: process.env.clientid,
Expand All @@ -31,4 +33,4 @@ app.get("/callback", passport.authenticate('roblox', { failureRedirect: '/authfa
res.redirect('/shh')
})
```


0 comments on commit 3c93124

Please sign in to comment.