Skip to content

ci: extract test workflow #2

ci: extract test workflow

ci: extract test workflow #2

Workflow file for this run

name: CI
on: push
jobs:
test:
uses: ./.github/workflows/test.yml
release:
runs-on: ubuntu-latest
needs:
- 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 }}