Publish packages #63
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: Check a pull request | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
TURBO_REMOTE_ONLY: true | |
jobs: | |
ensure_changelog_exists: | |
name: π Ensure that .changeset is not empty | |
runs-on: [ubuntu-latest] | |
strategy: | |
matrix: | |
node-version: ["18.x"] | |
pnpm-version: ["8.x"] | |
if: ${{ !contains(github.event.pull_request.title, 'Publish packages') }} | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
fetch-depth: 0 | |
- name: Use Node ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install changeset CLI | |
run: npm i -g @changesets/cli@$(node -p "require('./package.json').devDependencies['@changesets/cli']") | |
- name: Ensure that a changelog is added | |
run: npx changeset status --since=origin/master | |
test: | |
name: ⬣, π, π¨ Test PR | |
uses: ./.github/workflows/build-and-test.yml | |
secrets: inherit |