From c59d2025f86ecfd77454bab74e1c7f1817e631bb Mon Sep 17 00:00:00 2001 From: Kyle Kemp Date: Thu, 7 Sep 2023 06:53:37 -0500 Subject: [PATCH] add versioning action --- .github/workflows/version.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/version.yml diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml new file mode 100644 index 0000000..131aeb9 --- /dev/null +++ b/.github/workflows/version.yml @@ -0,0 +1,35 @@ +name: Tag New Release + +on: + workflow_dispatch: + inputs: + type: + type: choice + description: What kind of version? + required: true + options: + - patch + - minor + - major + +jobs: + tag: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest] + node-version: [18] + + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - run: npm install + + - name: Run Versioning + run: npm run bump:${{ github.event.inputs.type }}