Skip to content

Commit

Permalink
fix: failing CI jobs (#11)
Browse files Browse the repository at this point in the history
* chore: fix CI jobs

* fix: composer already run in Orb release jobs
  • Loading branch information
dkoo authored Sep 5, 2023
1 parent c5fbdc5 commit c62248b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 15 deletions.
33 changes: 23 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,35 @@ version: 2.1
orbs:
newspack: newspack/newspack@1.4.4

commands:
checkout_code:
steps:
- checkout
- attach_workspace:
at: ~/

jobs:
build:
docker:
- image: cimg/node:16.11.1
steps:
- checkout_code
- run:
name: Install dependencies
command: npm start
- persist_to_workspace:
root: ~/
paths:
- project

workflows:
version: 2
all:
jobs:
- newspack/build
- newspack/build-distributable:
requires:
- newspack/build
archive-name: 'newspack-network'
filters:
branches:
only:
- master
- build
- newspack/release:
requires:
- newspack/build
- build
filters:
branches:
only:
Expand Down
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
"scripts": {
"cm": "git-cz",
"semantic-release": "newspack-scripts release --files=newspack-network.php",
"build": "newspack-scripts build",
"start": "npm ci && newspack-scripts watch",
"watch": "newspack-scripts watch",
"test": "newspack-scripts test",
"start": "npm ci",
"lint:php": "./vendor/bin/phpcs .",
"format:php": "./vendor/bin/phpcbf .",
"lint:php:staged": "./vendor/bin/phpcs",
Expand All @@ -39,4 +36,4 @@
"url": "https://github.com/Automattic/newspack-network/issues"
},
"homepage": "https://github.com/Automattic/newspack-network#readme"
}
}

0 comments on commit c62248b

Please sign in to comment.