Skip to content

Commit

Permalink
Merge branch 'master' of github.com:vietaapp/node-mac-sign-in-with-ap…
Browse files Browse the repository at this point in the history
…ple into master
  • Loading branch information
Saimis committed Sep 23, 2020
2 parents b465b7b + 0053b7d commit 2b12bc5
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 20 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish Package

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
registry-url: https://npm.pkg.github.com/
scope: '@vietaapp'

- name: Install dependencies
run: yarn install

- name: Build
run: yarn build

- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# node macOS Sign in With Apple

## Usage with Electron

Add to main process

```js
import { signInWithApple } from 'node-mac-sign-in-with-apple';

ipcMain.on('sign-in-with-apple', async () => {
const nativeWindow = mainWindow.getNativeWindowHandle();
signInWithApple(nativeWindow);
})
```

Add to entitlements.plist

Expand Down
40 changes: 20 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,25 @@
{
"name": "node-mac-sign-in-with-apple",
"version": "0.1.0",
"name": "@vietaapp/node-mac-sign-in-with-apple",
"version": "0.1.1",
"description": "A native module that allows you to Sign in with Apple in macOS",
"main": "index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/vietaapp/node-mac-sign-in-with-apple.git"
},
"license": "MIT",
"homepage": "https://github.com/vietaapp/node-mac-sign-in-with-apple#readme",
"bugs": {
"url": "https://github.com/vietaapp/node-mac-sign-in-with-apple/issues"
},
"dependencies": {
"bindings": "^1.5.0",
"node-addon-api": "^3.0.2"
},
"devDependencies": {
"node-gyp": "^7.1.0",
"prettier": "^2.0.4"
},
"scripts": {
"build": "node-gyp build",
"build:dev": "node-gyp build --debug",
Expand All @@ -13,10 +30,6 @@
"rebuild:dev": "node-gyp rebuild --debug",
"test": "./node_modules/.bin/mocha --reporter spec"
},
"repository": {
"type": "git",
"url": "git+https://github.com/vietaapp/node-mac-sign-in-with-apple.git"
},
"keywords": [
"apple",
"login",
Expand All @@ -25,18 +38,5 @@
"node",
"electron",
"native"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/codebytere/node-mac-sign-in-with-apple/issues"
},
"homepage": "https://github.com/vietaapp/node-mac-sign-in-with-apple#readme",
"devDependencies": {
"node-gyp": "^7.1.0",
"prettier": "^2.0.4"
},
"dependencies": {
"bindings": "^1.5.0",
"node-addon-api": "^3.0.2"
}
]
}

0 comments on commit 2b12bc5

Please sign in to comment.