Skip to content

Commit

Permalink
feat: implement semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
NickChecan committed Oct 12, 2024
1 parent 86cf097 commit 1670b63
Show file tree
Hide file tree
Showing 3 changed files with 6,868 additions and 12 deletions.
32 changes: 28 additions & 4 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Build, Test and Deploy
on:
push:
paths:
- 'src/**'
# paths:
# - 'src/**'
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:

publish:
name: Publish image(s)
if: ${{ github.event.base_ref == 'refs/heads/main' }}
# if: ${{ github.event.base_ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
environment: publishing
needs:
Expand Down Expand Up @@ -118,4 +118,28 @@ jobs:
--image-name ghcr.io/the-nefarious-developer/${{ matrix.variant.IMAGE }}:${{ matrix.variant.VERSION }}
- name: Push image to GitHub Container Registry
run: docker push ghcr.io/the-nefarious-developer/${{ matrix.variant.IMAGE }}:${{ matrix.variant.VERSION }}
run: docker push ghcr.io/the-nefarious-developer/${{ matrix.variant.IMAGE }}:${{ matrix.variant.VERSION }}

release:
name: Generate release
# if: ${{ github.event.base_ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
needs: publish
steps:

- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm

- name: Install dependencies
run: npm ci

- name: Generate version and release
env:
GITHUB_TOKEN: ${{ secrets.NEFARIOUS_TOKEN }}
run: npm run semantic-release
Loading

0 comments on commit 1670b63

Please sign in to comment.