-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from TourConnect/proj/bonza_initial
Proj/bonza initial
- Loading branch information
Showing
11 changed files
with
12,362 additions
and
307 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,48 @@ | ||
name: Node.js Package | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
|
||
jobs: | ||
build_and_test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: sed -i 's/"file:.*"/"latest"/' package.json | ||
- name: install dependencies | ||
run: npm i | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- run: npm ci | ||
- run: npm run build --if-present | ||
- run: npm test | ||
env: | ||
ti2_bonza_endpoint: ${{ secrets.BONZA_STAGE_ENDPOINT }} | ||
ti2_bonza_apiKey: ${{ secrets.BONZA_STAGE_APIKEY }} | ||
ti2_bonza_supplierId: '200' | ||
ti2_bonza_jwtKey: 'Reliance-Overload4-Lyrics' | ||
tag: | ||
if: github.ref == 'refs/heads/main' | ||
needs: build_and_test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: tool3/bump@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
unrelated: true | ||
branch: main | ||
publish-npm: | ||
if: github.ref == 'refs/heads/main' | ||
needs: tag | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- run: sed -i 's/"file:.*"/"latest"/' package.json | ||
- name: install dependencies | ||
run: npm i | ||
- uses: JS-DevTools/npm-publish@v1 | ||
with: | ||
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.DS_Store | ||
node_modules |
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,2 +1,41 @@ | ||
# ti2-bonza | ||
Bonza's Ti2 Plugin | ||
# Ti2's Bonza plugin | ||
|
||
## Getting Started | ||
|
||
### Requirements | ||
|
||
Some environment variables are required for this plugin to run it's tests | ||
|
||
- apiKey | ||
- endpoint | ||
- jwtKey | ||
|
||
## Contributing | ||
|
||
Contributions are welcome and ecouraged. | ||
|
||
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again! | ||
|
||
- Fork the Project | ||
- Create your Feature Branch (git checkout -b feature/AmazingFeature) | ||
- Commit your Changes (git commit -m 'Add some AmazingFeature') | ||
- Push to the Branch (git push origin feature/AmazingFeature) | ||
- Open a Pull Request | ||
|
||
Feel free to check the [Issues Page](https://github.com/TourConnect/ti2-bonza/issues). | ||
|
||
## License | ||
|
||
Distributed under the GPL-3 License. See LICENSE.txt for more information. | ||
|
||
TL;DR Here's what the license entails: | ||
|
||
1. Anyone can copy, modify and distribute this software. | ||
2. You have to include the license and copyright notice with each and every distribution. | ||
3. You can use this software privately. | ||
4. You can use this software for commercial purposes. | ||
5. If you dare build your business solely from this code, you risk open-sourcing the whole code base. | ||
6. If you modify it, you have to indicate changes made to the code. | ||
7. Any modifications of this code base MUST be distributed with the same license, GPLv3. | ||
8. This software is provided without warranty. | ||
9. The software author or license can not be held liable for any damages inflicted by the software. |
Oops, something went wrong.