diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 188502a1f..760dae8ca 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -1,19 +1,29 @@ name: Pull Request on: push: + branches: [master] pull_request: - types: [opened reopened syncronize] + types: [opened, reopened, synchronize] jobs: lint: name: Lint runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v7 + with: + fetch-depth: 0 + - name: Setup Node + uses: actions/setup-node@v7 + with: + node-version-file: .tool-versions + cache: npm - name: Install dependencies - run: npm install + run: npm ci - name: Lint commit messages - uses: wagoid/commitlint-github-action@v1 + uses: wagoid/commitlint-github-action@v6 + with: + configFile: commitlint.config.cjs - name: Lint code run: npm run eslint - name: Lint styles @@ -29,12 +39,16 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v1 - - uses: actions/setup-node@v3 + uses: actions/checkout@v7 + with: + fetch-depth: 0 + - name: Setup Node + uses: actions/setup-node@v7 with: - node-version: 22 + node-version-file: .tool-versions + cache: npm - name: Install dependencies - run: npm install + run: npm ci - name: Chromatic uses: chromaui/action@v18 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ac35baf52..af68094ef 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,12 +9,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v1 - - uses: actions/setup-node@v3 + uses: actions/checkout@v7 + - name: Setup Node + uses: actions/setup-node@v7 with: - node-version: 22 + node-version-file: .tool-versions + cache: npm - name: Install dependencies - run: npm install + run: npm ci - name: Lint code run: npm run eslint - name: Lint styles @@ -28,7 +30,7 @@ jobs: - name: Build run: npm run build:storybook --workspace=packages/react - name: Deploy - uses: JamesIves/github-pages-deploy-action@4.1.3 + uses: JamesIves/github-pages-deploy-action@v4 with: - BRANCH: gh-pages - FOLDER: packages/react/storybook-static + branch: gh-pages + folder: packages/react/storybook-static diff --git a/package.json b/package.json index 97607895d..5a4201d38 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,11 @@ "husky": "husky install", "release": "lerna version --no-push" }, + "engines": { + "node": ">=22", + "npm": ">=10" + }, + "packageManager": "npm@11.19.0", "repository": { "type": "git", "url": "git+https://github.com/Elonsoft/esfront.git"