generated from edgefirst-dev/package
-
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 934 Bytes
/
bump.yml
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
35
36
37
38
39
40
41
42
43
44
name: Bump version
on:
workflow_dispatch:
inputs:
version:
description: "Type of version to bump"
required: true
type: choice
options:
- major
- minor
- patch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
packages: read
jobs:
bump-version:
name: Bump version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.DEPLOY_KEY }}
- uses: oven-sh/setup-bun@v2
- run: bun install --frozen-lockfile
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
- run: |
git config user.name 'Sergio Xalambrí'
git config user.email 'hello@sergiodxa.com'
- run: npm version ${{ github.event.inputs.version }}
- run: bun run quality:fix
- run: git push origin main --follow-tags