Skip to content

Commit

Permalink
ci: release to GitHub with action
Browse files Browse the repository at this point in the history
  • Loading branch information
sabertazimi authored Apr 1, 2024
1 parent 8321054 commit b3db7b5
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- main
tags:
- '*'
pull_request:
branches:
- main
Expand Down Expand Up @@ -38,3 +40,26 @@ jobs:
- name: Build package
run: |
pnpm build
publish:
name: Publishment
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 1
- name: Setup Node environment
uses: actions/setup-node@v4
with:
node-version: 20
architecture: x64
registry-url: https://registry.npmjs.org/
- name: Release to GitHub
run: |
npx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit b3db7b5

Please sign in to comment.