Skip to content

Commit

Permalink
feat: support releases with semantic versioning (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
sp71 authored Jan 14, 2024
1 parent bb89dcd commit cccf50a
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build

on:
push:
branches:
- master

jobs:
release-and-push:
name: Release And Push
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: -1
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Fetch Previous version
id: get-previous-tag
uses: actions-ecosystem/[email protected]

- name: Release
run: yarn global add [email protected] && semantic-release
env:
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
12 changes: 12 additions & 0 deletions .github/workflows/semantic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Always validate the PR title AND all the commits
titleAndCommits: true
# Require at least one commit to be valid
# this is only relevant when using commitsOnly: true or titleAndCommits: true,
# which validate all commits by default
anyCommit: true
# Allow use of Merge commits (eg on github: "Merge branch 'master' into feature/ride-unicorns")
# this is only relevant when using commitsOnly: true (or titleAndCommits: true)
allowMergeCommits: false
# Allow use of Revert commits (eg on github: "Revert "feat: ride unicorns"")
# this is only relevant when using commitsOnly: true (or titleAndCommits: true)
allowRevertCommits: false

0 comments on commit cccf50a

Please sign in to comment.