diff --git a/.github/workflows/ci-test-publish.yml b/.github/workflows/ci-test-publish.yml index 629f968..02f8dc6 100644 --- a/.github/workflows/ci-test-publish.yml +++ b/.github/workflows/ci-test-publish.yml @@ -19,16 +19,24 @@ on: required: false default: false +permissions: + actions: read + contents: read + pull-requests: read + # Required for npm provenance (OIDC) + id-token: write + jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5.0.0 - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v6.0.0 with: - node-version: 18 + node-version: 24 + registry-url: 'https://registry.npmjs.org' - run: npm ci - run: npm run lint - run: npm run prettier:ci @@ -40,10 +48,7 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} - name: npm publish if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && contains(github.ref, '.') }} - uses: JS-DevTools/npm-publish@v3 - with: - access: public - token: ${{ secrets.NPM_TOKEN }} + uses: JS-DevTools/npm-publish@v4.1.1 # Enable tmate debugging of manually-triggered workflows if the input option was provided - name: Setup tmate session diff --git a/package-lock.json b/package-lock.json index 8055c8c..869a1bb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@sillsdev/scripture", - "version": "2.0.2", + "version": "2.0.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@sillsdev/scripture", - "version": "2.0.2", + "version": "2.0.3", "license": "MIT", "devDependencies": { "@eslint/eslintrc": "^3.3.1", @@ -26,7 +26,7 @@ "ts-node": "^10.9.2", "tslib": "^2.8.1", "typescript": "^5.4.5", - "vite": "^6.3.4" + "vite": "^6.4.1" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -79,6 +79,7 @@ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.24.7.tgz", "integrity": "sha512-nykK+LEK86ahTkX/3TgauT0ikKoNCfKHEaZYTUVupJdTLzGNvrblu4u6fa7DhZONAltdf8e662t/abY8idrd/g==", "dev": true, + "peer": true, "dependencies": { "@ampproject/remapping": "^2.2.0", "@babel/code-frame": "^7.24.7", @@ -2052,7 +2053,8 @@ "version": "20.3.1", "resolved": "https://registry.npmjs.org/@types/node/-/node-20.3.1.tgz", "integrity": "sha512-EhcH/wvidPy1WeML3TtYFGR83UzjxeWRen9V402T8aUGYsCHOmfoisV3ZSg03gAFIbLq8TnWOJ0f4cALtnSEUg==", - "dev": true + "dev": true, + "peer": true }, "node_modules/@types/stack-utils": { "version": "2.0.1", @@ -2109,6 +2111,7 @@ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.31.1.tgz", "integrity": "sha512-oU/OtYVydhXnumd0BobL9rkJg7wFJ9bFFPmSmB/bf/XWN85hlViji59ko6bSKBXyseT9V8l+CN1nwmlbiN0G7Q==", "dev": true, + "peer": true, "dependencies": { "@typescript-eslint/scope-manager": "8.31.1", "@typescript-eslint/types": "8.31.1", @@ -2288,6 +2291,7 @@ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz", "integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==", "dev": true, + "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -2552,6 +2556,7 @@ "url": "https://github.com/sponsors/ai" } ], + "peer": true, "dependencies": { "caniuse-lite": "^1.0.30001629", "electron-to-chromium": "^1.4.796", @@ -2980,6 +2985,7 @@ "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.25.1.tgz", "integrity": "sha512-E6Mtz9oGQWDCpV12319d59n4tx9zOTXSTmc8BLVxBx+G/0RdM5MvEEJLU9c0+aleoePYYgVTOsRblx433qmhWQ==", "dev": true, + "peer": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.12.1", @@ -3783,6 +3789,7 @@ "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", "dev": true, + "peer": true, "dependencies": { "@jest/core": "^29.7.0", "@jest/types": "^29.6.3", @@ -5420,6 +5427,7 @@ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", "dev": true, + "peer": true, "engines": { "node": ">=12" }, @@ -5520,6 +5528,7 @@ "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", "dev": true, + "peer": true, "dependencies": { "@cspotcode/source-map-support": "^0.8.0", "@tsconfig/node10": "^1.0.7", @@ -5602,6 +5611,7 @@ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz", "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==", "dev": true, + "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -5772,6 +5782,7 @@ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", "dev": true, + "peer": true, "engines": { "node": ">=12" }, diff --git a/package.json b/package.json index 2fd1f37..72c9185 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sillsdev/scripture", - "version": "2.0.2", + "version": "2.0.3", "description": "TypeScript partial port of `libpalaso/SIL.Scripture`", "main": "dist/index.cjs.js", "module": "dist/index.es.js", @@ -57,9 +57,13 @@ "ts-node": "^10.9.2", "tslib": "^2.8.1", "typescript": "^5.4.5", - "vite": "^6.3.4" + "vite": "^6.4.1" + }, + "publishConfig": { + "access": "public", + "provenance": true }, "volta": { - "node": "18.20.3" + "node": "24.11.0" } }