Merge pull request #515 from pixijs/506-bug-usetick-not-ticking-on-in… #21
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: Handle Release Branch Push | |
on: | |
push: | |
jobs: | |
verify: | |
name: Verify | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
script: | |
# - name: Typecheck | |
# command: test:types | |
- name: Lint | |
command: test:lint | |
- name: Unit tests | |
command: test | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: ${{ matrix.script.name }} | |
run: npm run ${{ matrix.script.command }} | |
publish: | |
name: Publish | |
needs: | |
- verify | |
if: contains(fromJson('["refs/heads/alpha", "refs/heads/beta", "refs/heads/main"]'), github.ref) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Publish release | |
uses: ./.github/actions/publish-release | |
with: | |
branchName: ${{ github.head_ref || github.ref_name }} | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
npmToken: ${{ secrets.NPM_TOKEN }} |