-
-
Notifications
You must be signed in to change notification settings - Fork 273
34 lines (34 loc) · 1 KB
/
version-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
name: Version bump
on:
workflow_dispatch:
inputs:
tag_name:
description: 'Version'
required: true
jobs:
version-bump:
name: Update dist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v1
with:
node-version: "16"
- name: Install dependancies
run: yarn install
- name: Build source code
run: yarn build
- name: Test built source code
run: yarn run test-dist
- name: Setup Git
run: |
git config user.name gkr-bot
git config user.email [email protected]
- name: Version bump on package.json
run: yarn version --new-version ${{ github.event.inputs.tag_name }} --no-git-tag-version
- name: Commit the changes
run: |
git add ./dist/blog-post-workflow.js ./package.json
git commit -m "[skip-ci] Published ${{ github.event.inputs.tag_name }}"
- name: Push to repository
run: git push --quiet