diff --git a/.github/workflows/changesets.yml b/.github/workflows/changesets.yml index 5bca411..d887411 100644 --- a/.github/workflows/changesets.yml +++ b/.github/workflows/changesets.yml @@ -10,6 +10,10 @@ jobs: version: timeout-minutes: 15 runs-on: ubuntu-latest + permissions: + id-token: write # Required for OIDC publishing + contents: write # Required for changesets to push version commit + pull-requests: write # Required for changesets to create PRs steps: - name: Checkout code repository uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 @@ -19,7 +23,11 @@ jobs: - name: Setup node.js uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0 with: - node-version: 22 + node-version: 24 + registry-url: 'https://registry.npmjs.org' + + - name: Install latest npm + run: npm install -g npm@latest - name: Install dependencies run: npm install --ignore-scripts @@ -36,4 +44,5 @@ jobs: publish: npm run ci:publish env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NPM_TOKEN: "" + NPM_CONFIG_PROVENANCE: true diff --git a/workspaces/estree-ast-utils/package.json b/workspaces/estree-ast-utils/package.json index 7dc0f90..7b03dd4 100644 --- a/workspaces/estree-ast-utils/package.json +++ b/workspaces/estree-ast-utils/package.json @@ -11,9 +11,15 @@ "test-only": "tsx --test-reporter=spec --test \"./test/**/*.spec.ts\"", "test": "c8 -r html npm run test-only" }, + "publishConfig": { + "registry": "https://registry.npmjs.org", + "access": "public", + "provenance": true + }, "repository": { "type": "git", - "url": "git+https://github.com/NodeSecure/js-x-ray.git" + "url": "https://github.com/NodeSecure/js-x-ray", + "directory": "workspaces/estree-ast-utils" }, "keywords": [ "estree", diff --git a/workspaces/js-x-ray-ai/package.json b/workspaces/js-x-ray-ai/package.json index b30c1c7..81e6b5b 100644 --- a/workspaces/js-x-ray-ai/package.json +++ b/workspaces/js-x-ray-ai/package.json @@ -10,9 +10,15 @@ "test-only": "tsx --test-reporter=spec --test \"./test/**/*.spec.ts\"", "test": "c8 -r html npm run test-only" }, + "publishConfig": { + "registry": "https://registry.npmjs.org", + "access": "public", + "provenance": true + }, "repository": { "type": "git", - "url": "git+https://github.com/NodeSecure/js-x-ray.git" + "url": "https://github.com/NodeSecure/js-x-ray", + "directory": "workspaces/js-x-ray-ai" }, "keywords": [], "author": "GOMBAULD Clément ", diff --git a/workspaces/js-x-ray/package.json b/workspaces/js-x-ray/package.json index 196e8a8..3f201c3 100644 --- a/workspaces/js-x-ray/package.json +++ b/workspaces/js-x-ray/package.json @@ -23,9 +23,15 @@ "test-only": "tsx --test-reporter=spec --test \"./test/**/*.spec.ts\"", "test": "c8 --all --src ./src -r html npm run test-only" }, + "publishConfig": { + "registry": "https://registry.npmjs.org", + "access": "public", + "provenance": true + }, "repository": { "type": "git", - "url": "git+https://github.com/NodeSecure/js-x-ray.git" + "url": "https://github.com/NodeSecure/js-x-ray", + "directory": "workspaces/js-x-ray" }, "keywords": [ "ast", diff --git a/workspaces/sec-literal/package.json b/workspaces/sec-literal/package.json index 666081b..795d857 100644 --- a/workspaces/sec-literal/package.json +++ b/workspaces/sec-literal/package.json @@ -11,9 +11,15 @@ "test-only": "tsx --test-reporter=spec --test \"./test/**/*.spec.ts\"", "test": "npm run test-only" }, + "publishConfig": { + "registry": "https://registry.npmjs.org", + "access": "public", + "provenance": true + }, "repository": { "type": "git", - "url": "git+https://github.com/NodeSecure/js-x-ray.git" + "url": "https://github.com/NodeSecure/js-x-ray", + "directory": "workspaces/sec-literal" }, "keywords": [ "security", diff --git a/workspaces/tracer/package.json b/workspaces/tracer/package.json index ddee9aa..f77d18d 100644 --- a/workspaces/tracer/package.json +++ b/workspaces/tracer/package.json @@ -11,9 +11,15 @@ "test-only": "tsx --test-reporter=spec --test \"./test/**/*.spec.ts\"", "test": "c8 -r html npm run test-only" }, + "publishConfig": { + "registry": "https://registry.npmjs.org", + "access": "public", + "provenance": true + }, "repository": { "type": "git", - "url": "git+https://github.com/NodeSecure/js-x-ray.git" + "url": "https://github.com/NodeSecure/js-x-ray", + "directory": "workspaces/tracer" }, "keywords": [], "files": [ diff --git a/workspaces/ts-source-parser/package.json b/workspaces/ts-source-parser/package.json index 6c02174..842a10a 100644 --- a/workspaces/ts-source-parser/package.json +++ b/workspaces/ts-source-parser/package.json @@ -11,9 +11,15 @@ "test-only": "tsx --test-reporter=spec --test \"./test/**/*.spec.ts\"", "test": "c8 --all --src ./src -r html npm run test-only" }, + "publishConfig": { + "registry": "https://registry.npmjs.org", + "access": "public", + "provenance": true + }, "repository": { "type": "git", - "url": "git+https://github.com/NodeSecure/js-x-ray.git" + "url": "https://github.com/NodeSecure/js-x-ray", + "directory": "workspaces/ts-source-parser" }, "keywords": [ "typescript",