diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml new file mode 100644 index 0000000..c4016de --- /dev/null +++ b/.github/workflows/create-release.yml @@ -0,0 +1,21 @@ +name: Create Release +on: + push: + tags: + - 'v*' + +jobs: + create: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Publish GitHub Release + uses: softprops/action-gh-release@v2 + with: + tag_name: ${{ github.ref_name }} + name: ${{ github.ref_name }} + generate_release_notes: true + draft: false + prerelease: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/addon/models/vehicle.js b/addon/models/vehicle.js index 7e8be01..7e3754d 100644 --- a/addon/models/vehicle.js +++ b/addon/models/vehicle.js @@ -83,7 +83,7 @@ export default class VehicleModel extends Model { @attr('string') financing_status; @attr('number') loan_number_of_payments; @attr('date') loan_first_payment; - @attr('number') loan_amount; + @attr('string') loan_amount; @attr('string') estimated_service_life_distance_unit; @attr('number') estimated_service_life_distance; @attr('number') estimated_service_life_months; @@ -127,10 +127,10 @@ export default class VehicleModel extends Model { /** Financial values */ @attr('string') currency; - @attr('number') insurance_value; - @attr('number') depreciation_rate; - @attr('number') current_value; - @attr('number') acquisition_cost; + @attr('string') insurance_value; + @attr('string') depreciation_rate; + @attr('string') current_value; + @attr('string') acquisition_cost; /** Misc text / meta */ @attr('string') notes; diff --git a/package.json b/package.json index 69f2ff2..e754800 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fleetbase/fleetops-data", - "version": "0.1.22", + "version": "0.1.23", "description": "Fleetbase Fleet-Ops based models, serializers, transforms, adapters and GeoJson utility functions.", "keywords": [ "fleetbase-data",