@natlibfi/marc-record-validators-melinda 12.0.0-alpha.5 → 12.0.0-alpha.6

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
@@ -16,9 +20,9 @@ jobs:
16
20
 
17
21
  steps:
18
22
  - name: Checkout the code
19
- uses: actions/checkout@v4
23
+ uses: actions/checkout@v5
20
24
  - name: Use Node.js ${{ matrix.node-version }}
21
- uses: actions/setup-node@v3
25
+ uses: actions/setup-node@v6
22
26
  with:
23
27
  node-version: ${{ matrix.node-version }}
24
28
  cache: 'npm'
@@ -32,30 +36,51 @@ jobs:
32
36
  njsscan:
33
37
  name: Njsscan-check
34
38
  runs-on: ubuntu-latest
35
- container: docker://node:18
39
+ container: node:22
36
40
 
37
41
  steps:
38
42
  - name: Checkout the code
39
- uses: actions/checkout@v4
43
+ uses: actions/checkout@v5
40
44
  - name: nodejsscan scan
41
45
  id: njsscan
42
46
  uses: ajinabraham/njsscan-action@master
43
47
  with:
44
48
  args: '.'
45
49
 
50
+ license-scan:
51
+ name: License compliance check
52
+ runs-on: ubuntu-latest
53
+ container: node:22
54
+
55
+ steps:
56
+ - uses: actions/checkout@v5
57
+ - uses: mikaelvesavuori/license-compliance-action@v1
58
+ with:
59
+ exclude_pattern: /^@natlibfi/
60
+
46
61
  publish-to-npm:
47
62
  runs-on: ubuntu-latest
63
+ container: node:22
48
64
  needs: [build-node-versions, njsscan]
49
65
  if: contains(github.ref, 'refs/tags/')
50
66
 
51
67
  steps:
52
- - uses: actions/checkout@v4
68
+ - uses: actions/checkout@v5
53
69
  # Setup .npmrc file to publish to npm
54
- - uses: actions/setup-node@v3
70
+ - name: Prepare node for publish
71
+ uses: actions/setup-node@v6
55
72
  with:
56
- node-version: '18.x'
73
+ node-version: '22.x'
57
74
  registry-url: 'https://registry.npmjs.org'
58
- - run: npm i
59
- - run: npm publish
60
- env:
61
- NODE_AUTH_TOKEN: ${{ secrets.MARC_RECORD_VALIDATORS_MELINDA_NPM_TOKEN }}
75
+ - name: Update npm
76
+ run: npm install -g npm@latest
77
+ - name: Clean install
78
+ run: npm ci
79
+ # Publish stable release with --tag latest
80
+ - name: Publish stable release
81
+ if: ${{!contains(github.ref, '-alpha')}}
82
+ run: npm publish --tag=latest
83
+ # Publish pre-release without --tag latest
84
+ - name: Publish pre-release
85
+ if: contains(github.ref, '-alpha')
86
+ run: npm publish --tag=next
package/package.json CHANGED
@@ -6,16 +6,15 @@
6
6
  "name": "The National Library of Finland"
7
7
  },
8
8
  "keywords": [],
9
- "homepage": "https://github.com/natlibfi/marc-record-validators-melinda",
9
+ "homepage": "https://www.npmjs.com/package/@natlibfi/marc-record-validators-melinda",
10
10
  "bugs": {
11
11
  "url": "https://github.com/natlibfi/marc-record-validators-melinda/issues"
12
12
  },
13
13
  "repository": {
14
- "type": "git",
15
- "url": "git@github.com:natlibfi/marc-record-validators-melinda.git"
14
+ "url": "https://github.com/NatLibFi/marc-record-validators-melinda"
16
15
  },
17
16
  "license": "MIT",
18
- "version": "12.0.0-alpha.5",
17
+ "version": "12.0.0-alpha.6",
19
18
  "main": "./dist/index.js",
20
19
  "publishConfig": {
21
20
  "access": "public"
@@ -35,13 +34,13 @@
35
34
  },
36
35
  "dependencies": {
37
36
  "@natlibfi/issn-verify": "^1.0.6",
38
- "@natlibfi/marc-record": "^10.0.0-alpha.1",
39
- "@natlibfi/marc-record-serializers": "^11.0.0-alpha.2",
40
- "@natlibfi/marc-record-validate": "^9.0.0-alpha.1",
41
- "@natlibfi/melinda-commons": "^14.0.0-alpha.3",
42
- "@natlibfi/sfs-4900": "^2.0.0-alpha.3",
43
- "@natlibfi/iso9-1995": "^1.0.0-alpha.2",
44
- "@natlibfi/sru-client": "^7.0.0-alpha.3",
37
+ "@natlibfi/marc-record": "next",
38
+ "@natlibfi/marc-record-serializers": "next",
39
+ "@natlibfi/marc-record-validate": "next",
40
+ "@natlibfi/melinda-commons": "next",
41
+ "@natlibfi/sfs-4900": "next",
42
+ "@natlibfi/iso9-1995": "next",
43
+ "@natlibfi/sru-client": "next",
45
44
  "cld3-asm": "^4.0.0",
46
45
  "clone": "^2.1.2",
47
46
  "debug": "^4.4.3",
@@ -51,11 +50,11 @@
51
50
  "xregexp": "^5.1.2"
52
51
  },
53
52
  "peerDependencies": {
54
- "@natlibfi/marc-record-validate": "^9.0.0-alpha.1"
53
+ "@natlibfi/marc-record-validate": "next"
55
54
  },
56
55
  "devDependencies": {
57
- "@natlibfi/fixugen": "^3.0.0-alpha.6",
58
- "@natlibfi/fixura": "^4.0.0-alpha.13",
56
+ "@natlibfi/fixugen": "next",
57
+ "@natlibfi/fixura": "next",
59
58
  "cross-env": "^10.0.0",
60
59
  "esbuild": "^0.25.10",
61
60
  "eslint": "^9.36.0",