-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add publish action derived from https://github.com/actions/starter-workflows/blob/9bca5754a6e9b132c49c1715085c747b21278dc9/ci/npm-publish.yml#L4 Modified to skip `npm ci` and running integration tests because this would fail on non IBM i systems. - Document how to make a release - Simplify the build and release commands by using npm scripts
- Loading branch information
Showing
3 changed files
with
37 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: publish | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
publish-npm: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
registry-url: https://registry.npmjs.org/ | ||
- run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.npm_token}} |
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 |
---|---|---|
|
@@ -108,7 +108,7 @@ Note that building isn't necessary for end-users and is more for developers look | |
```sh | ||
git clone [email protected]:IBM/nodejs-idb-connector.git | ||
cd nodejs-idb-connector | ||
npm install --build-from-source | ||
npm run build | ||
``` | ||
## Build Dependencies | ||
Note: sqlcli header files, GCC, and Python are required to compile the code. | ||
|
@@ -119,6 +119,20 @@ Note: sqlcli header files, GCC, and Python are required to compile the code. | |
yum install python2 | ||
``` | ||
|
||
## Release | ||
|
||
```sh | ||
git clone [email protected]:IBM/nodejs-idb-connector.git | ||
cd nodejs-idb-connector | ||
npm install | ||
npm run build-release | ||
|
||
``` | ||
|
||
Create a new github release and attach the generated tar file in the `build` directory to the github release. | ||
|
||
After the release is created the [publish](.github/workflows/publish.yml) action will automatically publish to npm. | ||
|
||
## License | ||
|
||
[`MIT`](https://github.com/IBM/nodejs-idb-connector/blob/master/LICENSE) | ||
|
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