Skip to content

Commit b2e9733

Browse files
authored
Merge pull request #2 from TourConnect/proj/bonza_initial
Proj/bonza initial
2 parents 7f3bc3b + 875fca5 commit b2e9733

11 files changed

+12362
-307
lines changed

.github/workflows/nodejs.yml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Node.js Package
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
7+
jobs:
8+
build_and_test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- run: sed -i 's/"file:.*"/"latest"/' package.json
13+
- name: install dependencies
14+
run: npm i
15+
- uses: actions/setup-node@v1
16+
with:
17+
node-version: 12
18+
- run: npm ci
19+
- run: npm run build --if-present
20+
- run: npm test
21+
env:
22+
ti2_bonza_endpoint: ${{ secrets.BONZA_STAGE_ENDPOINT }}
23+
ti2_bonza_apiKey: ${{ secrets.BONZA_STAGE_APIKEY }}
24+
ti2_bonza_supplierId: '200'
25+
ti2_bonza_jwtKey: 'Reliance-Overload4-Lyrics'
26+
tag:
27+
if: github.ref == 'refs/heads/main'
28+
needs: build_and_test
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v2
32+
- uses: tool3/bump@master
33+
with:
34+
github_token: ${{ secrets.GITHUB_TOKEN }}
35+
unrelated: true
36+
branch: main
37+
publish-npm:
38+
if: github.ref == 'refs/heads/main'
39+
needs: tag
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: actions/checkout@v1
43+
- run: sed -i 's/"file:.*"/"latest"/' package.json
44+
- name: install dependencies
45+
run: npm i
46+
- uses: JS-DevTools/npm-publish@v1
47+
with:
48+
token: ${{ secrets.NPM_TOKEN }}

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.DS_Store
2+
node_modules

README.md

+41-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,41 @@
1-
# ti2-bonza
2-
Bonza's Ti2 Plugin
1+
# Ti2's Bonza plugin
2+
3+
## Getting Started
4+
5+
### Requirements
6+
7+
Some environment variables are required for this plugin to run it's tests
8+
9+
- apiKey
10+
- endpoint
11+
- jwtKey
12+
13+
## Contributing
14+
15+
Contributions are welcome and ecouraged.
16+
17+
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!
18+
19+
- Fork the Project
20+
- Create your Feature Branch (git checkout -b feature/AmazingFeature)
21+
- Commit your Changes (git commit -m 'Add some AmazingFeature')
22+
- Push to the Branch (git push origin feature/AmazingFeature)
23+
- Open a Pull Request
24+
25+
Feel free to check the [Issues Page](https://github.com/TourConnect/ti2-bonza/issues).
26+
27+
## License
28+
29+
Distributed under the GPL-3 License. See LICENSE.txt for more information.
30+
31+
TL;DR Here's what the license entails:
32+
33+
1. Anyone can copy, modify and distribute this software.
34+
2. You have to include the license and copyright notice with each and every distribution.
35+
3. You can use this software privately.
36+
4. You can use this software for commercial purposes.
37+
5. If you dare build your business solely from this code, you risk open-sourcing the whole code base.
38+
6. If you modify it, you have to indicate changes made to the code.
39+
7. Any modifications of this code base MUST be distributed with the same license, GPLv3.
40+
8. This software is provided without warranty.
41+
9. The software author or license can not be held liable for any damages inflicted by the software.

0 commit comments

Comments
 (0)