Skip to content

Commit

Permalink
Use node 16 on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Mar 21, 2023
1 parent 19aead9 commit 0a6ac5d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 20 deletions.
12 changes: 12 additions & 0 deletions .github/actions/ci-setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: 'CI setup'
runs:
using: 'composite'
steps:
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x

- name: Install Dependencies
run: yarn
shell: bash
12 changes: 2 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,8 @@ jobs:
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master

- name: Setup Node.js 12.x
uses: actions/setup-node@master
with:
node-version: 12.x

- name: Install dependencies
run: yarn
- uses: actions/checkout@v3
- uses: ./.github/actions/ci-setup

- name: Test
run: yarn test
12 changes: 2 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,8 @@ jobs:
if: github.repository == 'Andarist/react-textarea-autosize'
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master

- name: Setup Node.js 12.x
uses: actions/setup-node@master
with:
node-version: 12.x

- name: Install Dependencies
run: yarn
- uses: actions/checkout@v3
- uses: ./.github/actions/ci-setup

- name: Create Release Pull Request or Publish to npm
id: changesets
Expand Down

0 comments on commit 0a6ac5d

Please sign in to comment.