@natlibfi/marc-record-merge 8.0.0-alpha.1 → 8.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,13 @@
1
- # Melinda node tests
1
+ # Melinda node tests and publish
2
2
 
3
3
  name: Melinda node tests
4
4
 
5
5
  on: push
6
6
 
7
+ permissions:
8
+ id-token: write # Required for OIDC
9
+ contents: read
10
+
7
11
  jobs:
8
12
  build-node-versions:
9
13
  name: Node version matrix
@@ -11,14 +15,14 @@ jobs:
11
15
 
12
16
  strategy:
13
17
  matrix:
14
- node-version: [22.x, 23.x, 24.x]
18
+ node-version: [22.x, 24.x]
15
19
  # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
16
20
 
17
21
  steps:
18
22
  - name: Checkout the code
19
23
  uses: actions/checkout@v5
20
24
  - name: Use Node.js ${{ matrix.node-version }}
21
- uses: actions/setup-node@v4
25
+ uses: actions/setup-node@v6
22
26
  with:
23
27
  node-version: ${{ matrix.node-version }}
24
28
  cache: 'npm'
@@ -29,13 +33,25 @@ jobs:
29
33
  - run: npm test
30
34
  - run: npm run build --if-present
31
35
 
36
+ license-scan:
37
+ name: License compliance check
38
+ runs-on: ubuntu-latest
39
+ container: node:22
40
+
41
+ steps:
42
+ - uses: actions/checkout@v5
43
+ - uses: mikaelvesavuori/license-compliance-action@v1
44
+ with:
45
+ exclude_pattern: /^@natlibfi/
46
+
32
47
  njsscan:
33
48
  name: Njsscan check
34
49
  runs-on: ubuntu-latest
50
+ container: node:22
35
51
 
36
52
  steps:
37
53
  - name: Checkout the code
38
- uses: actions/checkout@v4
54
+ uses: actions/checkout@v5
39
55
  - name: nodejsscan scan
40
56
  id: njsscan
41
57
  uses: ajinabraham/njsscan-action@master
@@ -48,13 +64,21 @@ jobs:
48
64
  if: contains(github.ref, 'refs/tags/')
49
65
 
50
66
  steps:
51
- - uses: actions/checkout@v5
67
+ - uses: actions/checkout@v5
52
68
  # Setup .npmrc file to publish to npm
53
- - uses: actions/setup-node@v4
54
- with:
55
- node-version: '22.x'
56
- registry-url: 'https://registry.npmjs.org'
57
- - run: npm ci
58
- - run: npm publish
59
- env:
60
- NODE_AUTH_TOKEN: ${{ secrets.MARC_RECORD_MERGE_JS_NPM_TOKEN }}
69
+ - uses: actions/setup-node@v6
70
+ with:
71
+ node-version: '22.x'
72
+ registry-url: 'https://registry.npmjs.org'
73
+ - name: Update npm
74
+ run: npm install -g npm@latest
75
+ - name: Clean install
76
+ run: npm ci
77
+ # Publish stable release with --tag latest
78
+ - name: Publish stable release
79
+ if: ${{!contains(github.ref, '-alpha')}}
80
+ run: npm publish --tag=latest
81
+ # Publish pre-release without --tag latest
82
+ - name: Publish pre-release
83
+ if: contains(github.ref, '-alpha')
84
+ run: npm publish --tag=next
package/package.json CHANGED
@@ -5,16 +5,15 @@
5
5
  "name": "The National Library of Finland"
6
6
  },
7
7
  "keywords": [],
8
- "homepage": "https://github.com/natlibfi/marc-record-merge-js",
8
+ "homepage": "https://www.npmjs.com/package/@natlibfi/marc-record-merge-js",
9
9
  "bugs": {
10
10
  "url": "https://github.com/natlibfi/marc-record-merge-js/issues"
11
11
  },
12
12
  "repository": {
13
- "type": "git",
14
- "url": "git@github.com:natlibfi/marc-record-merge-js.git"
13
+ "url": "https://github.com/NatLibFi/marc-record-merge-js"
15
14
  },
16
15
  "license": "MIT",
17
- "version": "8.0.0-alpha.1",
16
+ "version": "8.0.0-alpha.2",
18
17
  "type": "module",
19
18
  "main": "./dist/index.js",
20
19
  "engines": {
@@ -31,26 +30,16 @@
31
30
  "test": "npm run lint && npm run test:base",
32
31
  "test:dev": "npm run lint:dev && npm run test:base"
33
32
  },
34
- "old_scripts": {
35
- "test:base": "cross-env NODE_ENV=test nyc mocha --package ./package.json",
36
- "coverage": "npm run coverage:unit && npm run coverage:report",
37
- "coverage:unit": "nyc --silent npm run test:base",
38
- "coverage:report": "nyc report",
39
- "dev:test": "cross-env NODE_ENV=test nodemon -w src -w test-fixtures --exec 'clear && npm run test:dev'",
40
- "dev:test:debug": "cross-env DEBUG=@natlibfi/* NODE_ENV=test nodemon -w src -w test-fixtures --exec 'clear && npm run test:dev'",
41
- "dev": "nodemon",
42
- "dev:debug": "cross-env LOG_LEVEL=debug DEBUG=@natlibfi/* NODE_ENV=test nodemon"
43
- },
44
33
  "dependencies": {
45
- "@natlibfi/marc-record": "^10.0.0-alpha.1",
34
+ "@natlibfi/marc-record": "^10.0.0",
46
35
  "debug": "^4.4.1",
47
36
  "normalize-diacritics": "^2.14.0"
48
37
  },
49
38
  "devDependencies": {
50
- "@natlibfi/fixugen": "^3.0.0-alpha.6",
51
- "@natlibfi/fixura": "^4.0.0-alpha.13",
52
- "cross-env": "^10.0.0",
53
- "esbuild": "^0.25.9",
54
- "eslint": "^9.34.0"
39
+ "@natlibfi/fixugen": "^3.0.0",
40
+ "@natlibfi/fixura": "^4.0.0",
41
+ "cross-env": "^10.1.0",
42
+ "esbuild": "^0.25.12",
43
+ "eslint": "^9.39.1"
55
44
  }
56
45
  }
File without changes