Skip to content

Commit

Permalink
Merge pull request #28 from patrickcate/develop
Browse files Browse the repository at this point in the history
ci: add semantic release CI github action
  • Loading branch information
patrickcate authored Apr 20, 2024
2 parents f91751c + 197a36e commit 37d8a7a
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release

on:
workflow_dispatch:
push:
branches:
- main
- alpha
- beta

jobs:
release:
if: contains(github.event.head_commit.message, 'skip release') == false
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.SEMANTIC_RELEASE_GH_TOKEN }}

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18

- name: Install dependencies
run: npm ci

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GH_TOKEN }}
NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }}
run: npm run semantic-release

0 comments on commit 37d8a7a

Please sign in to comment.