Skip to content

ci: split release workflow file #1

ci: split release workflow file

ci: split release workflow file #1

Workflow file for this run

name: CI
on: push
jobs:
unit-test:
uses: ./.github/workflows/test-unit.yml
integration-test:
uses: ./.github/workflows/test-integration.yml
e2e-test:
uses: ./.github/workflows/test-e2e.yml
release:
runs-on: ubuntu-latest
needs:
- unit-test
- integration-test
- e2e-test
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v4
- name: npm install
run: npm install
- name: Build
run: npm run build
- name: Release
uses: cycjimmy/semantic-release-action@v3
with:
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
branch: master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}