forked from willin/svelte-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 855 Bytes
/
bump.yml
File metadata and controls
34 lines (32 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Bump version
on:
workflow_dispatch:
inputs:
version:
description: 'Semver type of new version (major / minor / patch)'
required: true
type: choice
options:
- major
- minor
- patch
jobs:
bump-version:
name: Bump version
runs-on: ubuntu-latest
steps:
- name: Check out source
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Setup Git
run: |
git config user.name 'Willin Wang'
git config user.email 'willin@willin.org'
- run: npm install --force
- name: bump version
run: npm version ${{ github.event.inputs.version }}
- name: Push latest version
run: git push origin main --follow-tags