Skip to content

Commit

Permalink
fix gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuripetusko committed Aug 19, 2024
1 parent 095fc25 commit 2e43098
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 29 deletions.
46 changes: 25 additions & 21 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,25 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [22]
timeout-minutes: 5

node-version: [ 22 ]
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9

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

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: true
- name: Install dependencies
run: pnpm install

- name: Lint code
run: pnpm format && pnpm lint:fix
Expand All @@ -45,24 +46,25 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [22]
timeout-minutes: 5

node-version: [ 22 ]
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9

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

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: true
- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm run build
Expand All @@ -78,17 +80,19 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9

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

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: true
- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm run build
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/changesets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,28 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [22]
timeout-minutes: 5

node-version: [ 22 ]
timeout-minutes: 10
steps:
- 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

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9

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

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: true
- name: Install dependencies
run: pnpm install

- name: Create version pull request or publish to npm
uses: changesets/action@v1
Expand Down

0 comments on commit 2e43098

Please sign in to comment.