Skip to content

Commit 84f9bad

Browse files
authored
Merge pull request #505 from BeAPI/chore/replace-yarn-with-npm
chore: replace Yarn with npm and refresh frontend tooling
2 parents caa7dac + 6bd59a9 commit 84f9bad

15 files changed

Lines changed: 16603 additions & 13263 deletions

File tree

‎.github/workflows/node.js.yml‎

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
1+
# This workflow will do a clean install of node dependencies and build the source code.
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
33

44
name: Node.js CI
55

66
on:
7-
push:
8-
branches: [ master ]
97
pull_request:
108
branches: [ master ]
119

@@ -14,20 +12,12 @@ jobs:
1412

1513
runs-on: ubuntu-latest
1614

17-
strategy:
18-
matrix:
19-
node-version: [24.x]
20-
2115
steps:
22-
- uses: actions/checkout@v4
23-
- name: Enable Corepack
24-
# Must run before setup-node's yarn cache: resolves Yarn from packageManager, not v1.
25-
# See: https://github.com/actions/setup-node/issues/1027
26-
run: corepack enable
27-
- name: Use Node.js ${{ matrix.node-version }}
28-
uses: actions/setup-node@v4
16+
- uses: actions/checkout@v7
17+
- name: Use Node.js from package.json
18+
uses: actions/setup-node@v7
2919
with:
30-
node-version: ${{ matrix.node-version }}
31-
cache: yarn
32-
- run: yarn
33-
- run: yarn build
20+
node-version-file: package.json
21+
cache: npm
22+
- run: npm ci
23+
- run: npm run build

‎.github/workflows/php-quality.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: PHP Quality
22

3-
on: [push, pull_request]
3+
on:
4+
pull_request:
5+
branches: [ master ]
46

57
jobs:
68
run:

‎.gitignore‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,6 @@ dist/assets/img/sample/cache
7676
dist/
7777
src/conf-img/*.csv
7878

79-
### NPM (use Yarn instead)
80-
package-lock.json
81-
8279
### config
8380
/vendor/
8481

‎.stylelintrc‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extends": [
3-
"@wordpress/stylelint-config/scss",
3+
"@wordpress/stylelint-config/scss-stylistic",
44
"stylelint-config-recess-order"
55
],
66
"customSyntax": "postcss-scss",
@@ -13,7 +13,7 @@
1313
"at-rule-no-unknown": null,
1414
"comment-empty-line-before": null,
1515
"font-weight-notation": null,
16-
"max-line-length": null,
16+
"@stylistic/max-line-length": null,
1717
"no-descending-specificity": null,
1818
"rule-empty-line-before": null,
1919
"selector-class-pattern": null,
@@ -30,9 +30,10 @@
3030
"scss/at-if-closing-brace-space-after": null,
3131
"no-invalid-position-at-import-rule": null,
3232
"custom-property-pattern": null,
33-
"indentation": "tab",
34-
"number-leading-zero": "never",
35-
"string-quotes": "double",
33+
"order/properties-order": null,
34+
"@stylistic/indentation": "tab",
35+
"@stylistic/number-leading-zero": "never",
36+
"@stylistic/string-quotes": "double",
3637
"length-zero-no-unit": [
3738
true,
3839
{

‎.yarn/releases/yarn-4.5.0.cjs‎

Lines changed: 0 additions & 925 deletions
This file was deleted.

‎.yarn/sdks/eslint/bin/eslint.js‎

Lines changed: 0 additions & 20 deletions
This file was deleted.

‎.yarn/sdks/eslint/lib/api.js‎

Lines changed: 0 additions & 20 deletions
This file was deleted.

‎.yarn/sdks/eslint/package.json‎

Lines changed: 0 additions & 6 deletions
This file was deleted.

‎.yarn/sdks/integrations.yml‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎.yarn/sdks/prettier/index.js‎

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)