Skip to content

Commit

Permalink
Merge pull request #851 from storyblok/chore/ci-improvements
Browse files Browse the repository at this point in the history
chore: ci improvements
  • Loading branch information
alvarosabu authored Sep 20, 2024
2 parents 94f4692 + 0a6b95d commit 77ada5b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 17 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,15 @@ jobs:
test:
runs-on: ubuntu-latest
environment: test
strategy:
matrix:
node-version: [20]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: 18
cache: pnpm
- name: Install dependencies
run: pnpm install
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,21 @@ name: Release CI
on:
push:
branches: [main, next, beta]
pull_request:
branches: [main, next, beta]

jobs:
publish:
name: Publish to npm
runs-on: ubuntu-latest
environment: production
strategy:
matrix:
node-version: [20]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,15 @@ jobs:
name: Tests
runs-on: ubuntu-latest
environment: test
strategy:
matrix:
node-version: [20]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: 18
cache: pnpm
- name: Install dependencies
run: pnpm install
Expand Down

0 comments on commit 77ada5b

Please sign in to comment.