Update to yarn berry
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
name: Node.js CI
|
||||
on:
|
||||
push:
|
||||
branches: ['master']
|
||||
pull_request:
|
||||
branches: ['master']
|
||||
branches: [ "master" ]
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
|
||||
jobs:
|
||||
|
||||
@@ -19,11 +19,11 @@ jobs:
|
||||
with:
|
||||
node-version: 22.x
|
||||
|
||||
- name: Install production dependencies, check node engine compatibility
|
||||
run: yarn install --production=true
|
||||
- name: Enable Corepack
|
||||
run: corepack enable
|
||||
|
||||
- name: Install development dependencies
|
||||
run: yarn install --production=false --ignore-engines
|
||||
- name: Yarn install
|
||||
run: yarn install
|
||||
|
||||
- name: Build & Code analysis
|
||||
run: yarn run lint
|
||||
@@ -48,6 +48,9 @@ jobs:
|
||||
|
||||
needs: build
|
||||
|
||||
env:
|
||||
YARN_IGNORE_NODE: 1
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [16.x, 18.x, 20.x, 22.x]
|
||||
@@ -62,8 +65,11 @@ jobs:
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Enable Corepack
|
||||
run: corepack enable
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn install --ignore-engines
|
||||
run: yarn install
|
||||
|
||||
- name: Download build
|
||||
uses: actions/download-artifact@v4
|
||||
|
||||
+14
-3
@@ -1,7 +1,5 @@
|
||||
# Project
|
||||
node_modules/
|
||||
.idea/
|
||||
*.iml
|
||||
src/
|
||||
test/**/*.js
|
||||
test/**/*.js.map
|
||||
test/**/*.d.ts
|
||||
@@ -15,3 +13,16 @@ test/_test-issues.ts
|
||||
coverage/
|
||||
.nyc_output/
|
||||
test/samples/zeroes.flac
|
||||
|
||||
#IntelliJ IDEA:
|
||||
.idea
|
||||
*.iml
|
||||
|
||||
# Yarn:
|
||||
.pnp.*
|
||||
.yarn/*
|
||||
!.yarn/patches
|
||||
!.yarn/plugins
|
||||
!.yarn/releases
|
||||
!.yarn/sdks
|
||||
!.yarn/versions
|
||||
|
||||
Vendored
BIN
Binary file not shown.
@@ -0,0 +1,3 @@
|
||||
nodeLinker: node-modules
|
||||
|
||||
yarnPath: .yarn/releases/yarn-4.3.1.cjs
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
# Test against the latest version of this Node.js version
|
||||
environment:
|
||||
nodejs_version: "16"
|
||||
nodejs_version: "22"
|
||||
|
||||
version: $(package_version)-{build}
|
||||
|
||||
@@ -11,7 +11,7 @@ install:
|
||||
# Get the latest stable version of Node.js or io.js
|
||||
- ps: Install-Product node $env:nodejs_version
|
||||
# install modules
|
||||
- yarn install --ignore-engines
|
||||
- yarn install
|
||||
|
||||
build_script:
|
||||
- yarn run lint
|
||||
|
||||
+4
-3
@@ -79,12 +79,12 @@
|
||||
"bwf"
|
||||
],
|
||||
"scripts": {
|
||||
"clean": "del-cli lib/**/*.js lib/**/*.js.map lib/**/*.d.ts src/**/*.d.ts test/**/*.js test/**/*.js.map test/**/*.js test/**/*.js.map doc-gen/**/*.js doc-gen/**/*.js.map",
|
||||
"clean": "del-cli 'lib/**/*.js' 'lib/**/*.js.map' 'lib/**/*.d.ts' 'src/**/*.d.ts' 'test/**/*.js' 'test/**/*.js.map' 'test/**/*.js' 'test/**/*.js.map' 'doc-gen/**/*.js' 'doc-gen/**/*.js.map'",
|
||||
"compile-src": "tsc -p lib",
|
||||
"compile-test": "tsc -p test",
|
||||
"compile-doc": "tsc -p doc-gen",
|
||||
"compile": "npm run compile-src && npm run compile-test && npm run compile-doc",
|
||||
"eslint": "npx eslint lib/**/*.ts --ignore-pattern lib/**/*.d.ts example/typescript/**/*.ts test/**/*.ts doc-gen/**/*.ts",
|
||||
"eslint": "eslint lib/**/*.ts --ignore-pattern lib/**/*.d.ts example/typescript/**/*.ts test/**/*.ts doc-gen/**/*.ts",
|
||||
"lint-md": "remark -u preset-lint-markdown-style-guide .",
|
||||
"lint": "npm run lint-md && npm run eslint",
|
||||
"test": "mocha",
|
||||
@@ -143,5 +143,6 @@
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/Borewit/music-metadata/issues"
|
||||
}
|
||||
},
|
||||
"packageManager": "yarn@4.3.1"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user