Skip to content

Commit

Permalink
add ci to branch
Browse files Browse the repository at this point in the history
  • Loading branch information
XantreDev committed Nov 6, 2023
1 parent 94b7768 commit 73d851a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/compressed-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@ on:
pull_request:
branches:
- main
- react-1.2.x

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install pnpm
uses: pnpm/[email protected].2
uses: pnpm/[email protected].4
with:
version: 7
run_install: false
version: 8
run_install: true

- name: compressed-size-action
uses: preactjs/compressed-size-action@v2
with:
pattern: '{packages/*/dist/!(*.module|*.min).{js,mjs},docs/dist/**/*.{js,css}}'
build-script: 'ci:build'
strip-hash: "[.-](\\w{8,9})\\.(?:js|css)$"

8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ on:
push:
branches:
- main
- react-1.2.x
pull_request:
branches:
- main
- react-1.2.x

jobs:
tests:
Expand All @@ -21,9 +23,9 @@ jobs:
node-version: 18

- name: Install pnpm
uses: pnpm/[email protected].2
uses: pnpm/[email protected].4
with:
version: 7
version: 8
run_install: false

- name: Get pnpm store directory
Expand All @@ -49,4 +51,4 @@ jobs:
run: pnpm build

- name: Test production build
run: pnpm test:minify
run: pnpm test:minify
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- main
- react-1.2.x


jobs:
release:
Expand All @@ -19,9 +21,9 @@ jobs:
node-version: 18

- name: Install pnpm
uses: pnpm/[email protected].2
uses: pnpm/[email protected].4
with:
version: 7
version: 8
run_install: false

- name: Get pnpm store directory
Expand All @@ -43,4 +45,4 @@ jobs:
- name: Create Release Pull Request
uses: changesets/action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 73d851a

Please sign in to comment.