Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 17 additions & 10 deletions .github/workflows/version-bump.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,37 @@
name: Version Bump

on:
workflow_dispatch:
inputs:
version:
description: 'Version to bump to (major.minor.patch)'
bump_type:
description: 'Version bump type'
required: true
type: string

type: choice
options:
- patch
- minor
- major
jobs:
bump-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18.x'
node-version: '20.x'

- name: Configure Git
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- name: Update version
run: npm version ${{ github.event.inputs.version }} -m "Bump version to %s"

- name: Bump version
run: npm version ${{ github.event.inputs.bump_type }} -m "Bump version to %s"

- name: Push changes
run: |
git push
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Usagey Node.js SDK
[![Test](https://github.com/8thwanda/usagey-node-sdk/actions/workflows/test.yml/badge.svg)](https://github.com/8thwanda/usagey-node-sdk/actions/workflows/test.yml)
[![npm version](https://badge.fury.io/js/usagey.svg)](https://badge.fury.io/js/usagey)
[![npm version](https://img.shields.io/npm/v/usagey.svg)](https://www.npmjs.com/package/usagey)
[![codecov](https://codecov.io/gh/8thwanda/usagey-node-sdk/branch/main/graph/badge.svg)](https://codecov.io/gh/8thwanda/usagey-node-sdk)

The official Node.js SDK for [Usagey](https://usagey.com) - the complete toolkit for implementing usage-based pricing.
Expand Down
Loading
Loading