Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions .github/workflows/bundle-diff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Dependency Diff

on:
pull_request:

jobs:
build-main:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
ref: main
Comment thread
coderabbitai[bot] marked this conversation as resolved.
- name: Setup JS
uses: sxzz/workflows/setup-js@dd67f194be6388e12ee61ad0cd3b81cf74bfd294

- name: Build
run: pnpm build
- name: Pack
run: pnpm pack -r -F "./packages/**"

- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: base-packages
path: '*.tgz'
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated

build-pr:
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Setup JS
uses: sxzz/workflows/setup-js@dd67f194be6388e12ee61ad0cd3b81cf74bfd294

- name: Build
run: pnpm build
- name: Pack
run: pnpm pack -r -F "./packages/**"

- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: source-packages
path: '*.tgz'

diff_dependencies:
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
runs-on: ubuntu-latest
needs: [build-main, build-pr]
permissions:
issues: write
pull-requests: write
Comment thread
coderabbitai[bot] marked this conversation as resolved.
steps:
- name: Checkout repository
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
fetch-depth: 0 # allows the diff action to access git history
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: base-packages
path: ./base-packages
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: source-packages
path: ./source-packages
- name: Create Diff
uses: e18e/action-dependency-diff@3648e18f3cb944fbc79b52b7febc153a8b5381cb # fix: disable duplicate checks when threshold <= 0
with:
base-packages: ./base-packages/*.tgz
source-packages: ./source-packages/*.tgz
pack-size-threshold: -1
size-threshold: -1
duplicate-threshold: 0
Loading