Skip to content

Upgrade core dependencies to 5.0 #55

Upgrade core dependencies to 5.0

Upgrade core dependencies to 5.0 #55

Workflow file for this run

# imodel-transformer Extract API Build
name: Extract API
on:
workflow_dispatch:
pull_request:
branches:
- main
paths-ignore:
- "**.md"
- docs/**
- .github/CODEOWNERS
- common/changes/**/*.json
- "**/CHANGELOG.json"
- "**/CHANGELOG.md"
jobs:
extract-api:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Configure git
run: |
git config --local user.email imodeljs-admin@users.noreply.github.com
git config --local user.name imodeljs-admin
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 7.27.0
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18.16.0
cache: 'pnpm'
- name: Pnpm install
run: pnpm install
- name: Pnpm build
run: pnpm run build
- name: Run Extract API
run: pnpm run extract-api
working-directory: ${{ github.workspace }}/packages/transformer
- name: Assert no uncommitted changes (for extension api)
shell: bash
run: |
if [ $(git status --porcelain | wc -l) -ne "0" ]; then
echo "The following file(s) contain uncommitted changes:"
git status --porcelain -u
echo -e 'Please do the following:\n1. run `pnpm run extract-api` in packages/transformer \n2. commit the modified generated extension api files \n3. run pnpm change in root dir'
exit 1
fi
- name: Publish extracted api
uses: actions/upload-artifact@v4
with:
name: extracted-api
path: common/api