forked from etherspot/skandha
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 1.04 KB
/
check-package-version.yml
File metadata and controls
36 lines (30 loc) · 1.04 KB
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
name: Check if package version is updated
on:
pull_request:
branches:
- master
- develop
jobs:
start:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: 1.2.23
- name: Check if version has been updated
id: check
uses: EndBug/version-check@v2.1.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
file-name: ./package.json
- name: Log when changed
if: steps.check.outputs.changed == 'true'
run: 'echo "Yayy!! Version change found in commit ${{ steps.check.outputs.commit }}! New version: ${{ steps.check.outputs.version }} (${{ steps.check.outputs.type }})"'
- name: Dry run Skandha build
run: bun install && bun run build && bun run bootstrap
- name: Log when unchanged
if: steps.check.outputs.changed == 'false'
run: echo "No version change :/ Please update version in package.json!" && exit 1