@natlibfi/melinda-record-matching 5.0.0-alpha.2 → 5.0.0-alpha.3

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.
@@ -4,6 +4,10 @@ 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
@@ -18,7 +22,7 @@ jobs:
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@v5
25
+ uses: actions/setup-node@v6
22
26
  with:
23
27
  node-version: ${{ matrix.node-version }}
24
28
  cache: 'npm'
@@ -32,8 +36,7 @@ jobs:
32
36
  njsscan:
33
37
  name: Njsscan check
34
38
  runs-on: ubuntu-latest
35
- container:
36
- image: docker.io/node:22
39
+ container: node:22
37
40
 
38
41
  steps:
39
42
  - name: Checkout the code
@@ -47,12 +50,11 @@ jobs:
47
50
  license-scan:
48
51
  name: License compliance check
49
52
  runs-on: ubuntu-latest
50
- container:
51
- image: docker.io/node:22
53
+ container: node:22
52
54
 
53
55
  steps:
54
56
  - uses: actions/checkout@v5
55
- - uses: mikaelvesavuori/license-compliance-action@v1.0.3
57
+ - uses: mikaelvesavuori/license-compliance-action@v1
56
58
  with:
57
59
  exclude_pattern: /^@natlibfi/
58
60
 
@@ -64,11 +66,19 @@ jobs:
64
66
  steps:
65
67
  - uses: actions/checkout@v5
66
68
  # Setup .npmrc file to publish to npm
67
- - uses: actions/setup-node@v5
69
+ - uses: actions/setup-node@v6
68
70
  with:
69
- node-version: '20.x'
71
+ node-version: '22.x'
70
72
  registry-url: 'https://registry.npmjs.org'
71
- - run: npm ci
72
- - run: npm publish
73
- env:
74
- NODE_AUTH_TOKEN: ${{ secrets.MELINDA_RECORD_MATCHING_NPM_TOKEN }}
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/melinda-record-matching-js",
8
+ "homepage": "https://www.npmjs.com/package/@natlibfi/melinda-record-matching",
9
9
  "bugs": {
10
10
  "url": "https://github.com/natlibfi/melinda-record-matching-js/issues"
11
11
  },
12
12
  "repository": {
13
- "type": "git",
14
- "url": "git@github.com:natlibfi/melinda-record-matching-js.git"
13
+ "url": "https://github.com/NatLibFi/melinda-record-matching-js"
15
14
  },
16
15
  "license": "MIT",
17
- "version": "5.0.0-alpha.2",
16
+ "version": "5.0.0-alpha.3",
18
17
  "main": "./dist/index.js",
19
18
  "type": "module",
20
19
  "bin": "./dist/cli.js",
@@ -38,22 +37,22 @@
38
37
  "dev:debug": "cross-env LOG_LEVEL=debug DEBUG=@natlibfi/* NODE_ENV=test npm run watch:test"
39
38
  },
40
39
  "dependencies": {
41
- "@natlibfi/marc-record": "^10.0.0-alpha.1",
42
- "@natlibfi/marc-record-serializers": "^11.0.0-alpha.2",
43
- "@natlibfi/melinda-commons": "^14.0.0-alpha.3",
44
- "@natlibfi/sru-client": "^7.0.0-alpha.1",
40
+ "@natlibfi/marc-record": "next",
41
+ "@natlibfi/marc-record-serializers": "next",
42
+ "@natlibfi/melinda-commons": "next",
43
+ "@natlibfi/sru-client": "next",
45
44
  "debug": "^4.4.1",
46
45
  "isbn3": "^1.2.14",
47
46
  "moment": "^2.30.1",
48
47
  "natural": "^8.0.1",
49
- "uuid": "^11.1.0",
48
+ "uuid": "^13.0.0",
50
49
  "winston": "^3.17.0",
51
50
  "yargs": "^18.0.0"
52
51
  },
53
52
  "devDependencies": {
54
- "@natlibfi/fixugen": "^3.0.0-alpha.6",
55
- "@natlibfi/fixugen-http-client": "^4.0.0-alpha.1",
56
- "@natlibfi/fixura": "^4.0.0-alpha.13",
53
+ "@natlibfi/fixugen": "next",
54
+ "@natlibfi/fixugen-http-client": "next",
55
+ "@natlibfi/fixura": "next",
57
56
  "cross-env": "^7.0.3",
58
57
  "esbuild": "^0.25.9",
59
58
  "eslint": "^9.35.0"