@natlibfi/melinda-rest-api-commons 5.0.0-alpha.3 → 5.0.0-alpha.4

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@v4
25
+ uses: actions/setup-node@v6
22
26
  with:
23
27
  node-version: ${{ matrix.node-version }}
24
28
  cache: 'npm'
@@ -57,18 +61,27 @@ jobs:
57
61
 
58
62
  publish:
59
63
  runs-on: ubuntu-latest
64
+ container: node:22
60
65
  needs: [build-node-versions, njsscan]
61
66
  if: contains(github.ref, 'refs/tags/')
62
- container: node:22
63
67
 
64
68
  steps:
65
69
  - uses: actions/checkout@v5
66
70
  # Setup .npmrc file to publish to npm
67
- - uses: actions/setup-node@v4
71
+ - name: Prepare node for publish
72
+ uses: actions/setup-node@v6
68
73
  with:
69
74
  node-version: '22.x'
70
75
  registry-url: 'https://registry.npmjs.org'
71
- - run: npm i
72
- - run: npm publish
73
- env:
74
- NODE_AUTH_TOKEN: ${{ secrets.MELINDA_REST_API_COMMONS_NPM_TOKEN }}
76
+ - name: Update npm
77
+ run: npm install -g npm@latest
78
+ - name: Clean install
79
+ run: npm ci
80
+ # Publish stable release with --tag latest
81
+ - name: Publish stable release
82
+ if: ${{!contains(github.ref, '-alpha')}}
83
+ run: npm publish --tag=latest
84
+ # Publish pre-release without --tag latest
85
+ - name: Publish pre-release
86
+ if: contains(github.ref, '-alpha')
87
+ 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-rest-api-commons",
8
+ "homepage": "https://www.npmjs.com/package/@natlibfi/melinda-rest-api-commons",
9
9
  "bugs": {
10
10
  "url": "https://github.com/natlibfi/melinda-rest-api-commons/issues"
11
11
  },
12
12
  "repository": {
13
- "type": "git",
14
- "url": "git@github.com:natlibfi/melinda-rest-api-commons.git"
13
+ "url": "https://github.com/NatLibFi/melinda-rest-api-commons"
15
14
  },
16
15
  "license": "MIT",
17
- "version": "5.0.0-alpha.3",
16
+ "version": "5.0.0-alpha.4",
18
17
  "main": "./dist/index.js",
19
18
  "type": "module",
20
19
  "engines": {
@@ -37,12 +36,12 @@
37
36
  "dev:debug": "cross-env LOG_LEVEL=debug DEBUG=@natlibfi/* NODE_ENV=test npm run watch:test"
38
37
  },
39
38
  "dependencies": {
40
- "@natlibfi/marc-record": "^10.0.0-alpha.1",
41
- "@natlibfi/marc-record-serializers": "^11.0.0-alpha.2",
42
- "@natlibfi/marc-record-validate": "^9.0.0-alpha.1",
43
- "@natlibfi/marc-record-validators-melinda": "^11.6.7",
44
- "@natlibfi/melinda-backend-commons": "^3.0.0-alpha.3",
45
- "@natlibfi/melinda-commons": "^14.0.0-alpha.3",
39
+ "@natlibfi/marc-record": "next",
40
+ "@natlibfi/marc-record-serializers": "next",
41
+ "@natlibfi/marc-record-validate": "next",
42
+ "@natlibfi/marc-record-validators-melinda": "next",
43
+ "@natlibfi/melinda-backend-commons": "next",
44
+ "@natlibfi/melinda-commons": "next",
46
45
  "amqplib": "^0.10.9",
47
46
  "debug": "^4.4.1",
48
47
  "http-status": "^2.1.0",
@@ -51,9 +50,9 @@
51
50
  "mongodb": "^6.19.0"
52
51
  },
53
52
  "devDependencies": {
54
- "@natlibfi/fixugen": "^3.0.0-alpha.5",
55
- "@natlibfi/fixura": "^4.0.0-alpha.12",
56
- "@natlibfi/fixura-mongo": "^3.0.0-alpha.5",
53
+ "@natlibfi/fixugen": "next",
54
+ "@natlibfi/fixura": "next",
55
+ "@natlibfi/fixura-mongo": "next",
57
56
  "cross-env": "^10.0.0",
58
57
  "esbuild": "^0.25.9",
59
58
  "eslint": "^9.34.0"