Skip to content

Commit

Permalink
fix: github ci broken on push (#10)
Browse files Browse the repository at this point in the history
Signed-off-by: Steven E Wright <StevenEWright@users.noreply.github.com>
  • Loading branch information
StevenEWright committed Aug 11, 2023
1 parent 66fba92 commit 098fcdc
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 7 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ on:
push:
branches: ['main']
paths-ignore: ['**.md']
pull_request:
branches: ['main']
paths-ignore: ['**.md']

jobs:
build:
Expand All @@ -29,6 +26,3 @@ jobs:
cache: 'npm'
cache-dependency-path: './package-lock.json'
- run: ./ci
- uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
31 changes: 31 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Kullna PR Actions

on:
pull_request:
branches: ['main']
paths-ignore: ['**.md']

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Setup npm
run: npm install -g pnpm
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: './package-lock.json'
- run: ./ci
- uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"size-limit": [
{
"path": "./dist/kullna-editor.min.js",
"limit": "6.5 KB"
"limit": "8 KB"
}
],
"exports": {
Expand Down

0 comments on commit 098fcdc

Please sign in to comment.