Skip to content

ci(assets): stringify list of paths for released packages #15002

ci(assets): stringify list of paths for released packages

ci(assets): stringify list of paths for released packages #15002

Workflow file for this run

name: E2E
on:
workflow_dispatch:
pull_request:
branches: [main, rc, hotfix]
jobs:
e2e:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: skip for markdown only prs
id: markdown-check
run: |
current_branch="$(git rev-parse --abbrev-ref HEAD)"
# diff of branch excluding md
testable_changes=$(git diff --name-only "$current_branch" $(git merge-base "$current_branch" origin/main) -- . ':(exclude)*.md*')
echo "changed files: $testable_changes"
# skip if there are only md changes
if [ -z "$testable_changes" ]; then
echo "skip e2e"
echo "SKIP=true" >> $GITHUB_OUTPUT
else
echo "run e2e"
echo "SKIP=false" >> $GITHUB_OUTPUT
fi
- if: steps.markdown-check.outputs.SKIP == 'false'
uses: actions/setup-node@v4
with:
node-version-file: package.json
- if: steps.markdown-check.outputs.SKIP == 'false'
run: npm install && npm run build && npm run test