@natlibfi/sfs-4900 2.0.0-alpha.3 → 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.
@@ -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
@@ -20,7 +24,7 @@ jobs:
20
24
  - name: Checkout the code
21
25
  uses: actions/checkout@v5
22
26
  - name: Use Node.js ${{ matrix.node-version }}
23
- uses: actions/setup-node@v4
27
+ uses: actions/setup-node@v6
24
28
  with:
25
29
  node-version: ${{ matrix.node-version }}
26
30
  cache: 'npm'
@@ -65,11 +69,20 @@ jobs:
65
69
  steps:
66
70
  - uses: actions/checkout@v5
67
71
  # Setup .npmrc file to publish to npm
68
- - uses: actions/setup-node@v4
72
+ - name: Prepare node for publish
73
+ uses: actions/setup-node@v6
69
74
  with:
70
75
  node-version: '22.x'
71
76
  registry-url: 'https://registry.npmjs.org'
72
- - run: npm ci
73
- - run: npm publish
74
- env:
75
- NODE_AUTH_TOKEN: ${{ secrets.SFS4900_NPM_TOKEN }}
77
+ - name: Update npm
78
+ run: npm install -g npm@latest
79
+ - name: Clean install
80
+ run: npm ci
81
+ # Publish stable release with --tag latest
82
+ - name: Publish stable release
83
+ if: ${{!contains(github.ref, '-alpha')}}
84
+ run: npm publish --tag=latest
85
+ # Publish pre-release without --tag latest
86
+ - name: Publish pre-release
87
+ if: contains(github.ref, '-alpha')
88
+ run: npm publish --tag=next
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@natlibfi/sfs-4900",
3
3
  "type": "module",
4
- "version": "2.0.0-alpha.3",
4
+ "version": "2.0.0",
5
5
  "license": "MIT",
6
6
  "description": "Transliteration from cyrillic (Russian, Ukrainian) text to latin (Finnish) as defined in the SFS-4900 standard",
7
7
  "author": "The National Library of Finland",
@@ -19,13 +19,12 @@
19
19
  "Finnish",
20
20
  "transliteration"
21
21
  ],
22
- "homepage": "https://github.com/NatLibFi/sfs-4900",
22
+ "homepage": "https://www.npmjs.com/package/@natlibfi/sfs-4900",
23
23
  "bugs": {
24
24
  "url": "https://github.com/NatLibFi/sfs-4900/issues"
25
25
  },
26
26
  "repository": {
27
- "type": "git",
28
- "url": "git+ssh://git@github.com/natlibfi/sfs-4900.git"
27
+ "url": "https://github.com/NatLibFi/sfs-4900"
29
28
  },
30
29
  "main": "dist/transliteration.js",
31
30
  "engines": {
@@ -44,11 +43,11 @@
44
43
  "dev:test": "cross-env DEBUG=@natlibfi/* NODE_ENV=test node --watch --test --experimental-test-coverage --test-reporter=spec './src/*.test.js' './src/**/*.test.js'"
45
44
  },
46
45
  "devDependencies": {
47
- "@natlibfi/fixugen": "^3.0.0-alpha.6",
48
- "@natlibfi/fixura": "^4.0.0-alpha.13",
49
- "cross-env": "^7.0.3",
50
- "eslint": "^9.34.0",
51
- "esbuild": "^0.25.9"
46
+ "@natlibfi/fixugen": "^3.0.0",
47
+ "@natlibfi/fixura": "^4.0.0",
48
+ "cross-env": "^10.1.0",
49
+ "eslint": "^9.39.1",
50
+ "esbuild": "^0.25.12"
52
51
  },
53
52
  "dependencies": {}
54
53
  }