diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 269eb591..a55ab4e7 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -3,27 +3,27 @@ name: deploy-docs on: push: branches: - - alpha # replace with master once merged + - alpha # replace with master once merged # install dependencies, build, and push to `gh-pages` jobs: build-and-deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - with: - persist-credentials: false + - uses: actions/checkout@v3 + with: + persist-credentials: false - - name: Install and build - working-directory: docs - run: | - yarn - yarn build + - name: Install and build + working-directory: docs + run: | + yarn + yarn build - - name: Deploy to gh-pages - uses: JamesIves/github-pages-deploy-action@3.7.1 - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - BRANCH: gh-pages - FOLDER: docs/build - CLEAN: true + - name: Deploy to gh-pages + uses: JamesIves/github-pages-deploy-action@v4 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BRANCH: gh-pages + FOLDER: docs/build + CLEAN: true diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index eb7f26f9..0c47f84a 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -3,31 +3,33 @@ name: Validate Pull Request on: [pull_request] jobs: - run: - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [12.x] - env: - CI: true - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: sudo apt-get install xvfb - - name: yarn install, build & tests - run: | - yarn install --frozen-lockfile - xvfb-run --auto-servernum yarn test - env: - CI: true - - name: Cleanup xvfb pidx - uses: bcomnes/cleanup-xvfb@v1 - - name: Install and build docs - working-directory: docs - run: | - yarn - yarn build + run: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x] # Updated to use more recent LTS versions + + steps: + - uses: actions/checkout@v3 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - run: sudo apt-get install xvfb + + - name: yarn install, build & tests + run: | + yarn install --frozen-lockfile + xvfb-run --auto-servernum yarn test + + - name: Cleanup xvfb pidx + uses: bcomnes/cleanup-xvfb@v1 + + - name: Install and build docs + working-directory: docs + run: | + yarn + yarn build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6c7a8c9a..154f70b4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,16 +8,16 @@ on: jobs: release: name: Release - runs-on: ubuntu-18.04 + runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Setup Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: - node-version: 12 + node-version: '12' - name: Install dependencies run: yarn install --frozen-lockfile - name: Build the package diff --git a/.github/workflows/semantic_release_lint.yml b/.github/workflows/semantic_release_lint.yml index 97319ea8..7e59ea6e 100644 --- a/.github/workflows/semantic_release_lint.yml +++ b/.github/workflows/semantic_release_lint.yml @@ -1,15 +1,18 @@ name: 'Pull Request SemVer lint' + on: - pull_request_target: - types: - - opened - - edited - - synchronize + pull_request_target: + types: + - opened + - edited + - synchronize jobs: - main: - runs-on: ubuntu-latest - steps: - - uses: amannn/action-semantic-pull-request@v1.2.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + main: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - uses: amannn/action-semantic-pull-request@v3 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index 8ff81a81..33769196 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,3 @@ -🚧 THIS IS **ALPHA** version of the library - the API still might change 🚧 - # electron-redux Electron-Redux is an Redux Store Enhancer that helps you loosely synchronize the redux stores in multiple electron processes. @@ -7,9 +5,9 @@ Electron-Redux is an Redux Store Enhancer that helps you loosely synchronize the When working with Electron, using Redux poses couple of problems, since main and renderer processes are isolated and IPC is a single way of communication between them. This library, enables you to register all your Redux stores in the main & renderer process, and enable cross-process action dispatching & _loose_ store synchronization. [![GitHub Workflow Status](https://img.shields.io/github/workflow/status/klarna/electron-redux/Release)](https://github.com/klarna/electron-redux/actions?query=workflow%3ARelease) -[![npm (tag)](https://img.shields.io/npm/v/electron-redux/alpha)](https://www.npmjs.com/package/electron-redux/) +[![npm (tag)](https://img.shields.io/npm/v/electron-redux)](https://www.npmjs.com/package/electron-redux/) [![npm](https://img.shields.io/npm/dm/electron-redux)](https://www.npmjs.com/package/electron-redux/) -[![npm bundle size (version)](https://img.shields.io/bundlephobia/minzip/electron-redux/alpha)](https://bundlephobia.com/result?p=electron-redux) +[![npm bundle size (version)](https://img.shields.io/bundlephobia/minzip/electron-redux)](https://bundlephobia.com/result?p=electron-redux) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org) @@ -17,10 +15,10 @@ When working with Electron, using Redux poses couple of problems, since main and ```sh # with yarn -yarn add electron-redux@alpha +yarn add electron-redux # with npm -npm install electron-redux@alpha +npm install electron-redux ``` For more details, please see [the Installation docs page](#todo).