-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: enable size-compare and add gist_id
- Loading branch information
Showing
1 changed file
with
42 additions
and
42 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,42 @@ | ||
#name: SizeCompare CI | ||
# | ||
# | ||
#on: | ||
# push: | ||
# branches: | ||
# - main | ||
# pull_request: | ||
# types: [opened, reopened, synchronize, ready_for_review] | ||
# workflow_dispatch: | ||
# | ||
#jobs: | ||
# size-compare: | ||
# runs-on: ubuntu-22.04 | ||
# | ||
# steps: | ||
# - name: Checkout repo | ||
# uses: actions/checkout@v3 | ||
# | ||
# - name: Setup pnpm | ||
# uses: pnpm/action-setup@v2 | ||
# | ||
# - name: Use Node ${{ matrix.node }} | ||
# uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: ${{ matrix.node }} | ||
# cache: 'pnpm' | ||
# | ||
# - name: Install deps | ||
# run: pnpm install | ||
# | ||
# - name: Build | ||
# run: pnpm build | ||
# | ||
# - name: 🚛 Size compare | ||
# uses: effector/size-compare@v1.0.0 | ||
# with: | ||
# gist_id: "ee428e541efb123240eecef9ce1aa970" | ||
# gist_token: "${{ secrets.SIZE_COMPARE_TOKEN }}" | ||
# github_token: "${{ secrets.GITHUB_TOKEN }}" | ||
# files: | | ||
# dist/**/*.js | ||
name: SizeCompare CI | ||
|
||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: [opened, reopened, synchronize, ready_for_review] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
size-compare: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2 | ||
|
||
- name: Use Node ${{ matrix.node }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
cache: 'pnpm' | ||
|
||
- name: Install deps | ||
run: pnpm install | ||
|
||
- name: Build | ||
run: pnpm build | ||
|
||
- name: 🚛 Size compare | ||
uses: effector/size-compare@v1.0.0 | ||
with: | ||
gist_id: "6eb87784dc1804c28cb490c43a5d95e0" | ||
gist_token: "${{ secrets.SIZE_COMPARE_TOKEN }}" | ||
github_token: "${{ secrets.GITHUB_TOKEN }}" | ||
files: | | ||
dist/**/*.js |