Skip to content

Commit

Permalink
chore: add semantic release to the main pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
NickChecan committed Oct 15, 2024
1 parent 93ea8b1 commit 5455c1a
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,28 @@ jobs:
publish-templates: "true"
base-path-to-templates: "./src"
env:
GITHUB_TOKEN: ${{ secrets.NEFARIOUS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.NEFARIOUS_TOKEN }}

release:
name: Generate release
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: deploy
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

0 comments on commit 5455c1a

Please sign in to comment.