Skip to content

Commit

Permalink
Merge pull request #731 from terrestris/semantic-release
Browse files Browse the repository at this point in the history
ci: configure semantic-release
  • Loading branch information
simonseyock authored Jun 12, 2024
2 parents a20c9d2 + 9dc71c4 commit b8db97c
Show file tree
Hide file tree
Showing 5 changed files with 12,461 additions and 7,492 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release

on:
push:
branches:
- main
- next

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout sources 🔰
uses: actions/checkout@v3

- name: Setup Node.js 22 👷🏻
uses: actions/setup-node@v3
with:
node-version: 20

- name: Install dependencies ⏬
run: npm ci

- name: Build artifacts 🏗️
run: npm run build

- name: Release 🚀
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
24 changes: 0 additions & 24 deletions .release-it.json

This file was deleted.

14 changes: 14 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"branches": [
"main",
"next"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/git",
"@semantic-release/github"
]
}
Loading

0 comments on commit b8db97c

Please sign in to comment.