use isTTY for subshell detection #269
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: Release _preview_ packages | |
on: | |
pull_request: | |
push: | |
branches-ignore: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# by default only the current commit is fetched | |
# but we need more history to be able to compare to main | |
# TODO: ideally we would just fetch the history between origin/main and the current commit | |
fetch-depth: 0 | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Use Node.js 20.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20.x" | |
cache: 'pnpm' | |
- name: Install node deps | |
run: pnpm i | |
- name: Enable turborepo build cache | |
uses: rharkor/[email protected] | |
- name: Build publishable DMNO modules | |
run: pnpm build:libs | |
# we use a custom script to run `npx pkg-pr-new publish` | |
# so that we can determine which packages to release | |
- name: Release preview packages | |
run: node scripts/release-preview.js |