Skip to content

Commit

Permalink
feat: add semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
RingoTC committed Feb 28, 2024
1 parent 3c9fec0 commit d35c7d0
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 36 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ jobs:
push: true
tags: greenstand/${{ github.event.repository.name }}-dev:${{ steps.package-version.outputs.current-version }}

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release

- id: export_bumped_version
run: |
export BUMPED_VERSION="${{ steps.package-version.outputs.current-version }}"
Expand Down
36 changes: 0 additions & 36 deletions .github/workflows/release.yml

This file was deleted.

18 changes: 18 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"release": {
"branches": [
{
"name": "main",
"channel": "release"
},
{
"name": "dev",
"channel": "beta"
},
{
"name": "feature/*",
"channel": "alpha"
}
]
}
}

0 comments on commit d35c7d0

Please sign in to comment.