chore(ci): fix run ci #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test and Release (if master) | |
on: push | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: npm ci | |
- run: npm test | |
# - if: github.ref == 'refs/heads/master' | |
# run: npm run semantic-release | |
gha: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Run gha e2e | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: cp .github/workflows/event.json /home/runner/work/_temp/_github_workflow/event.json | |
- run: npm ci | |
- run: npm run gha-e2e |