Skip to content

Commit

Permalink
Setup semantic release (#55)
Browse files Browse the repository at this point in the history
* chore: setup semantic version actions

* chore: update secret
  • Loading branch information
tristenwallace committed Jul 15, 2024
1 parent 30d9f64 commit 34617ec
Show file tree
Hide file tree
Showing 4 changed files with 7,880 additions and 2,547 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release

on:
push:
branches:
- main

jobs:
release:
name: Release
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20.12'

- name: Install dependencies
run: npm install

- name: Run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
run: npx semantic-release
16 changes: 16 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"branches": ["main"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/github",
[
"@semantic-release/git",
{
"assets": ["package.json", "package-lock.json", "CHANGELOG.md"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
]
}
Loading

0 comments on commit 34617ec

Please sign in to comment.