@natlibfi/fixugen-http-server 2.0.0-alpha.1 → 2.0.0

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
1
  # Melinda node tests
2
2
 
3
- name: Melinda node tests
3
+ name: Melinda node tests and publish
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'
@@ -32,7 +36,7 @@ jobs:
32
36
  license-scan:
33
37
  name: License compliance check
34
38
  runs-on: ubuntu-latest
35
- container: docker://node:22
39
+ container: node:22
36
40
 
37
41
  steps:
38
42
  - uses: actions/checkout@v5
@@ -43,7 +47,7 @@ jobs:
43
47
  njsscan:
44
48
  name: Njsscan check
45
49
  runs-on: ubuntu-latest
46
- container: docker://node:22
50
+ container: node:22
47
51
 
48
52
  steps:
49
53
  - name: Checkout the code
@@ -56,17 +60,27 @@ jobs:
56
60
 
57
61
  publish:
58
62
  runs-on: ubuntu-latest
63
+ container: node:22
59
64
  needs: [build-node-versions, njsscan]
60
65
  if: contains(github.ref, 'refs/tags/')
61
66
 
62
67
  steps:
63
68
  - uses: actions/checkout@v5
64
69
  # Setup .npmrc file to publish to npm
65
- - uses: actions/setup-node@v4
70
+ - name: Prepare node for publish
71
+ uses: actions/setup-node@v6
66
72
  with:
67
73
  node-version: '22.x'
68
74
  registry-url: 'https://registry.npmjs.org'
69
- - run: npm ci
70
- - run: npm publish
71
- env:
72
- NODE_AUTH_TOKEN: ${{ secrets.FIXUGEN_HTTP_SERVER_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
@@ -5,16 +5,15 @@
5
5
  "name": "The National Library of Finland"
6
6
  },
7
7
  "keywords": [],
8
- "homepage": "https://github.com/natlibfi/fixugen-http-server-js",
8
+ "homepage": "https://www.npmjs.com/package/@natlibfi/fixugen-http-server",
9
9
  "bugs": {
10
10
  "url": "https://github.com/natlibfi/fixugen-http-server-js/issues"
11
11
  },
12
12
  "repository": {
13
- "type": "git",
14
- "url": "git@github.com:natlibfi/fixugen-http-server-js.git"
13
+ "url": "https://github.com/NatLibFi/fixugen-http-server-js"
15
14
  },
16
15
  "license": "MIT",
17
- "version": "2.0.0-alpha.1",
16
+ "version": "2.0.0",
18
17
  "main": "dist/index.js",
19
18
  "type": "module",
20
19
  "engines": {
@@ -35,14 +34,14 @@
35
34
  "dev:debug": "cross-env LOG_LEVEL=debug DEBUG=@natlibfi/* NODE_ENV=test npm run watch:test"
36
35
  },
37
36
  "dependencies": {
38
- "@natlibfi/fixugen": "^3.0.0-alpha.5",
39
- "@natlibfi/fixura": "^4.0.0-alpha.12",
40
- "debug": "^4.4.1"
37
+ "@natlibfi/fixugen": "^3.0.0",
38
+ "@natlibfi/fixura": "^4.0.0",
39
+ "debug": "^4.4.3"
41
40
  },
42
41
  "devDependencies": {
43
- "cross-env": "^10.0.0",
44
- "esbuild": "^0.25.9",
45
- "eslint": "^9.34.0",
42
+ "cross-env": "^10.1.0",
43
+ "esbuild": "^0.25.12",
44
+ "eslint": "^9.39.1",
46
45
  "express": "^5.1.0"
47
46
  }
48
47
  }