Skip to content

Commit

Permalink
ci: enable size-compare and add gist_id
Browse files Browse the repository at this point in the history
  • Loading branch information
Drevoed committed Oct 6, 2022
1 parent b644204 commit 84f5e1b
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 deletions .github/workflows/size-compare.yml
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

0 comments on commit 84f5e1b

Please sign in to comment.