fix compressed-diff workflow #3140
This file contains hidden or 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
| name: Compressed Size | |
| on: | |
| pull_request: | |
| branches: [ master, develop ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/checkout@v4 # Checkout the Stackable Premium repo. | |
| with: | |
| repository: 'bfintal/Stackable-Premium' | |
| ref: 'v3' | |
| path: 'pro__premium_only' | |
| token: '${{ secrets.ACCESS_KEY }}' | |
| - name: Setup Node | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 18.x | |
| cache: 'npm' | |
| - name: Install Dependencies | |
| run: | | |
| npm ci | |
| cd pro__premium_only | |
| npm ci | |
| - name: Build Project | |
| run: | | |
| npm run build:no-translate | |
| - uses: preactjs/compressed-size-action@v2 | |
| with: | |
| repo-token: "${{ secrets.GITHUB_TOKEN }}" | |
| pattern: "./build/stackable/**" | |
| exclude: "{**/*.map,**/node_modules/**}" |