Skip to content

Commit

Permalink
Merge pull request #7 from discoverygarden/feature/add-workflows
Browse files Browse the repository at this point in the history
IT-496: Adding semver and and check dist workflows
  • Loading branch information
nchiasson-dgi authored Oct 15, 2024
2 parents 8f4f18e + 836abfb commit 241e12a
Show file tree
Hide file tree
Showing 3 changed files with 3,301 additions and 3,272 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/check_dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Check Dist
on:
pull_request:
branches: ['*']
push:
branches: ['main']
jobs:
check-dist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run package
- run: |
if [[ $(git status --porcelain) ]]; then
echo "::debug:: $(git status --porcelain)"
echo '::error::`dist` changed, please update dist by running `npm run package`'
exit 1
fi
18 changes: 18 additions & 0 deletions .github/workflows/semver.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Auto Semver
on:
pull_request_target:
types: closed
branches:
- main
jobs:
update:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Run Auto Semver
uses: discoverygarden/auto-semver@v1
- name: Update Major Tag
uses: discoverygarden/action-major-tag@v1
with:
prefix: 'v'
Loading

0 comments on commit 241e12a

Please sign in to comment.