Skip to content

Commit

Permalink
ci: added semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
sundarlogan committed May 9, 2024
1 parent 5e44ac6 commit f82be00
Show file tree
Hide file tree
Showing 5 changed files with 8,772 additions and 2,767 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/publish.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release

on:
push:
branches:
- main

jobs:
release:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'

- name: Install Dependencies
run: npm install

- name: Build
run: npm run build

- name: Semantic Release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
12 changes: 12 additions & 0 deletions .releaserc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
branches:
- main

plugins:
- "@semantic-release/commit-analyzer"
- "@semantic-release/release-notes-generator"
- "@semantic-release/npm"
- "@semantic-release/git":
assets:
- package.json
message: "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"

Loading

0 comments on commit f82be00

Please sign in to comment.