chore(deps): update all non-major dependencies (examples) (minor) (#5… #13722
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
# This is a basic workflow to help you get started with Actions | |
name: CI | |
concurrency: | |
group: ci-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'next' | |
- '+([0-9])?(.{+([0-9]),x}).x' | |
pull_request: {} | |
jobs: | |
reuse-compliance: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: REUSE Compliance Check | |
uses: fsfe/[email protected] | |
check-bundle-size: | |
if: ${{ github.base_ref == 'main' }} # only for PRs targeting main branch | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: preactjs/[email protected] | |
with: | |
repo-token: '${{ secrets.GITHUB_TOKEN }}' | |
pattern: 'packages/**/dist/**/*.js' | |
compression: 'gzip' | |
clean-script: 'clean:remove-modules' | |
install: | |
name: 'Install Dependencies' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/[email protected] | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'yarn' | |
- name: Install and Build | |
run: yarn install --immutable | |
test: | |
needs: ['install'] | |
uses: './.github/workflows/test.yml' | |
build: | |
needs: ['install'] | |
name: 'Build' | |
runs-on: ubuntu-latest | |
env: | |
CYPRESS_INSTALL_BINARY: 0 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/[email protected] | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'yarn' | |
- name: Install and Build | |
run: | | |
yarn install --immutable | |
yarn build | |
lint: | |
needs: ['install'] | |
runs-on: ubuntu-latest | |
env: | |
CYPRESS_INSTALL_BINARY: 0 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/[email protected] | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'yarn' | |
- name: install dependencies | |
run: yarn install --immutable | |
- name: run eslint | |
run: yarn lint | |
env: | |
NODE_OPTIONS: '--max-old-space-size=4096' | |
deploy-next-docs: | |
needs: ['build'] | |
if: ${{ github.ref == 'refs/heads/main' }} | |
runs-on: ubuntu-latest | |
env: | |
CYPRESS_INSTALL_BINARY: 0 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js environment | |
uses: actions/[email protected] | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'yarn' | |
- name: Install and Build | |
run: | | |
yarn install --immutable | |
yarn build:storybook | |
env: | |
NODE_OPTIONS: '--max-old-space-size=4096' | |
- name: Deploy 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
folder: .out # The folder the action should deploy. | |
target-folder: main | |
clean: true |