Skip to content

Commit

Permalink
Merge pull request #2 from TourConnect/proj/bonza_initial
Browse files Browse the repository at this point in the history
Proj/bonza initial
  • Loading branch information
shintre authored Jul 9, 2024
2 parents 7f3bc3b + 875fca5 commit b2e9733
Show file tree
Hide file tree
Showing 11 changed files with 12,362 additions and 307 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/nodejs.yml
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 }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.DS_Store
node_modules
43 changes: 41 additions & 2 deletions README.md
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.
Loading

0 comments on commit b2e9733

Please sign in to comment.