ci: use wildcard in build-and-upload
to support future additional packages, add cache to setup
for yarn dependencies
#12
Workflow file for this run
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: PR Checks | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
build: | |
name: Build | |
uses: ./.github/workflows/build-and-upload.yml | |
secrets: | |
npm_token: ${{ secrets.npm_token }} | |
test: | |
name: Test | |
needs: build | |
if: ${{ needs.build.outputs.has_changes == 'true' }} | |
uses: ./.github/workflows/test.yml | |
secrets: | |
npm_token: ${{ secrets.npm_token }} |