Skip to content

Commit

Permalink
Update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuripetusko committed Aug 19, 2024
1 parent 5aacf17 commit 1ded395
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 23 deletions.
40 changes: 23 additions & 17 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,25 @@ jobs:
lint:
name: Lint
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 22 ]
timeout-minutes: 5

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v3
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 8
version: 9
run_install: true

- name: Lint code
Expand All @@ -42,18 +46,19 @@ jobs:
timeout-minutes: 5

steps:
- name: Clone repository
- name: Checkout
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v3
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 8
version: 9
run_install: true

- name: Build
Expand All @@ -64,18 +69,19 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Clone repository
- name: Checkout
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v3
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 8
version: 9
run_install: true

- name: Build
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/changesets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,28 @@ jobs:
needs: build-and-test
permissions: write-all
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 22 ]
timeout-minutes: 5

steps:
- name: Clone repository
- name: Checkout
uses: actions/checkout@v4
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0

- name: Install Node.js
uses: actions/setup-node@v3
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 8
version: 9
run_install: true

- name: Create version pull request or publish to npm
Expand Down

0 comments on commit 1ded395

Please sign in to comment.