message: Run CI for pull requests
diff: name: CI
  -on: [push]
  +on: [push, pull_request]
  jobs:
  ci:
  name: CI
  @@ -26,6 +26,7 @@ jobs:
  run: yarn test
  - name: Create .npmrc
  + if: github.event_name == 'push'
  run: |
  cat << EOF > "$HOME/.npmrc"
  //registry.npmjs.org/:_authToken=$NPM_TOKEN
  @@ -34,6 +35,7 @@ jobs:
  NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN_SHARED }}
  - name: Publish canary version
  + if: github.event_name == 'push'
  run: |
  echo "$( jq '.version = "0.0.0"' package.json )" > package.json
  echo -e "---\n'@primer/components': patch\n---\n\nFake entry to force publishing" > .changeset/force-snapshot-release.md
  @@ -43,6 +45,7 @@ jobs:
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  - name: Output canary version number
  + if: github.event_name == 'push'
  run: |
  name=$(jq -r .name package.json)
  version=$(jq -r .version package.json)
  