-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Added GitHub action to publish to npm
chore: Cleaned up readme and updated deps
- Loading branch information
1 parent
8edb17a
commit fa1c39e
Showing
8 changed files
with
168 additions
and
375 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,27 @@ | ||
name: Build | ||
on: [push, pull_request] | ||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
name: Build | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '12' | ||
- run: yarn install --frozen-lockfile | ||
name: Build | ||
node-version: '16' | ||
|
||
- name: Build | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Archive pre-built bindings | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: binding | ||
path: binding/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Publish | ||
on: | ||
release: | ||
types: [ created ] | ||
|
||
jobs: | ||
publish: | ||
runs-on: macos-latest | ||
name: Publish | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
|
||
- name: Build | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Archive pre-built bindings | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: binding | ||
path: binding/** | ||
|
||
- name: Publish to npm | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: npm publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
._* | ||
.DS_Store | ||
.git | ||
.git* | ||
.gitignore | ||
.travis.yml | ||
*.tgz | ||
binding | ||
/build | ||
/node_modules | ||
/out | ||
npm-debug.log* | ||
env.properties | ||
/Jenkinsfile | ||
yarn.lock | ||
/bin/publish.js |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# node-ios-device [![Build Status](https://travis-ci.org/appcelerator/node-ios-device.svg?branch=master)](https://travis-ci.org/appcelerator/node-ios-device) [![Greenkeeper badge](https://badges.greenkeeper.io/appcelerator/node-ios-device.svg)](https://greenkeeper.io/) | ||
# node-ios-device | ||
|
||
Queries connected iOS devices, installs apps, and relays log output. | ||
|
||
|
@@ -16,8 +16,8 @@ node-ios-device is currently compatible with the following versions: | |
* 16.x (module API v93) | ||
* 17.x (module API v102) | ||
|
||
Only Mac OS X (darwin) is supported. You should make this module an optional | ||
dependency of your application and it will only be downloaded on OS X. | ||
Only macOS (darwin) is supported. You should make this module an optional | ||
dependency of your application and it will only be downloaded on macOS. | ||
|
||
> Note: [email protected] will only support Node.js 4 and newer. | ||
|
@@ -280,14 +280,6 @@ To debug `node-ios-device`, | |
- Add the environment variable `DEBUG=*` | ||
- Close out the schemes and click "Run" | ||
|
||
### Publishing | ||
|
||
This section is intended for Appcelerator release managers. | ||
|
||
To publish a new release to NPM, run `npm publish`. This will build | ||
`node-ios-device` for all Node.js module API versions and then upload each | ||
binary to the associated release on the GitHub repository. | ||
|
||
## License | ||
|
||
This project is open source and provided under the Apache Public License | ||
|
@@ -298,5 +290,3 @@ privacy notice at the end of the file. | |
This project contains `mobiledevice.h` from | ||
[https://bitbucket.org/tristero/mobiledeviceaccess](https://bitbucket.org/tristero/mobiledeviceaccess) | ||
and is available under public domain. | ||
|
||
#### (C) Copyright 2012-2018, [Appcelerator](http://www.appcelerator.com/) Inc. All Rights Reserved. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,22 +2,15 @@ | |
"name": "node-ios-device", | ||
"description": "Simple library for listing and installing apps on iOS devices", | ||
"version": "1.9.3", | ||
"author": { | ||
"name": "Appcelerator, Inc.", | ||
"email": "[email protected]" | ||
}, | ||
"author": "TiDev, Inc. <[email protected]>", | ||
"maintainers": [ | ||
{ | ||
"name": "Chris Barber", | ||
"email": "[email protected]" | ||
} | ||
"Chris Barber <[email protected]>" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/appcelerator/node-ios-device.git" | ||
"url": "git://github.com/tidev/node-ios-device.git" | ||
}, | ||
"keywords": [ | ||
"appcelerator", | ||
"ios", | ||
"iphone", | ||
"ipad", | ||
|
@@ -27,20 +20,21 @@ | |
"device", | ||
"devices" | ||
], | ||
"license": "Apache-2.0", | ||
"gypfile": true, | ||
"main": "./ios-device", | ||
"dependencies": { | ||
"@mapbox/node-pre-gyp": "^1.0.6", | ||
"debug": "^4.2.0", | ||
"@mapbox/node-pre-gyp": "^1.0.8", | ||
"debug": "^4.3.4", | ||
"nan": "^2.15.0", | ||
"node-pre-gyp-init": "^1.2.1" | ||
}, | ||
"devDependencies": { | ||
"@octokit/rest": "^18.3.5" | ||
"@octokit/rest": "^18.12.0" | ||
}, | ||
"scripts": { | ||
"install": "node ./bin/run.js node-pre-gyp install --fallback-to-build", | ||
"build-n-publish-binding": "node ./bin/run.js node-pre-gyp rebuild package publish", | ||
"prepare": "node ./bin/run.js node ./bin/build-all.js", | ||
"package-all": "node ./bin/run.js node ./bin/build-all.js rebuild package", | ||
"rebuild": "node ./bin/run.js node-pre-gyp rebuild", | ||
"rebuild-debug": "node ./bin/run.js node-pre-gyp --debug rebuild", | ||
"xcode": "node ./bin/run.js node-pre-gyp configure -- -f xcode", | ||
|
@@ -53,19 +47,16 @@ | |
"remote_path": "./tidev/{name}/releases/download/v{version}", | ||
"host": "https://github.com", | ||
"targets": { | ||
"10.16.3": 64, | ||
"10.24.1": 64, | ||
"11.15.0": 67, | ||
"12.11.0": 72, | ||
"13.5.0": 79, | ||
"14.13.1": 83, | ||
"15.0.1": 88, | ||
"16.0.0": 93, | ||
"17.0.1": 102 | ||
"12.22.11": 72, | ||
"13.14.0": 79, | ||
"14.19.1": 83, | ||
"15.14.0": 88, | ||
"16.14.2": 93, | ||
"17.7.2": 102 | ||
} | ||
}, | ||
"license": "Apache-2.0", | ||
"gypfile": true, | ||
"main": "./ios-device", | ||
"engines": { | ||
"node": ">=10.13" | ||
} | ||
|
Oops, something went wrong.