Skip to content

testing and debugging pkg.pr.new #35

testing and debugging pkg.pr.new

testing and debugging pkg.pr.new #35

name: Release preview packages
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: git fetch origin main
with:

Check failure on line 11 in .github/workflows/release-preview.yaml

View workflow run for this annotation

GitHub Actions / Release preview packages

Invalid workflow file

The workflow is not valid. .github/workflows/release-preview.yaml (Line: 11, Col: 9): Unexpected value '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: Build publishable DMNO modules
run: pnpm build:libs
- run: git diff --name-only origin/main HEAD
- run: git rev-parse --abbrev-ref HEAD
# we use a custom script to run `npx pkg-pr-new publish`
# so that we can determine which packages to release
- name: Release preview pacakges
run: node scripts/release-preview.js