diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6ec9a97..7e68f5b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,6 +3,13 @@ name: Release push: branches: - main +# These are recommended by the semantic-release docs: https://github.com/semantic-release/npm#npm-provenance +permissions: + contents: write # to be able to publish a GitHub release + issues: write # to be able to comment on released issues + pull-requests: write # to be able to comment on released pull requests + id-token: write # to enable use of OIDC for npm provenance + jobs: release: name: release diff --git a/package.json b/package.json index e3be7ed..ed27602 100644 --- a/package.json +++ b/package.json @@ -289,5 +289,8 @@ "engines": { "node": ">=16.5.0", "npm": ">=7.17.0" + }, + "publishConfig": { + "provenance": true } } diff --git a/packages/auth-token/package.json b/packages/auth-token/package.json index a8b89e6..4b90752 100644 --- a/packages/auth-token/package.json +++ b/packages/auth-token/package.json @@ -1,7 +1,8 @@ { "name": "@octokit-next/auth-token", "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "type": "module", "version": "0.0.0-development", diff --git a/packages/core/package.json b/packages/core/package.json index e0157c2..2fe7b10 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,7 +1,8 @@ { "name": "@octokit-next/core", "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "type": "module", "version": "0.0.0-development", diff --git a/packages/endpoint/package.json b/packages/endpoint/package.json index 8ea76e5..fa05648 100644 --- a/packages/endpoint/package.json +++ b/packages/endpoint/package.json @@ -2,7 +2,8 @@ "name": "@octokit-next/endpoint", "version": "0.0.0-development", "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "type": "module", "description": "Turns REST API endpoints into generic request options", diff --git a/packages/graphql/package.json b/packages/graphql/package.json index 79fe260..a9d9924 100644 --- a/packages/graphql/package.json +++ b/packages/graphql/package.json @@ -2,7 +2,8 @@ "name": "@octokit-next/graphql", "version": "0.0.0-development", "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "type": "module", "description": "GitHub GraphQL API client for browsers and Node", diff --git a/packages/oauth-authorization-url/package.json b/packages/oauth-authorization-url/package.json index 7e998a3..173ff32 100644 --- a/packages/oauth-authorization-url/package.json +++ b/packages/oauth-authorization-url/package.json @@ -1,7 +1,8 @@ { "name": "@octokit-next/oauth-authorization-url", "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "type": "module", "version": "0.0.0-development", diff --git a/packages/oauth-methods/package.json b/packages/oauth-methods/package.json index 979daad..d767824 100644 --- a/packages/oauth-methods/package.json +++ b/packages/oauth-methods/package.json @@ -1,7 +1,8 @@ { "name": "@octokit-next/oauth-methods", "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "type": "module", "version": "0.0.0-development", diff --git a/packages/request-error/package.json b/packages/request-error/package.json index b8ac1e9..6fa8470 100644 --- a/packages/request-error/package.json +++ b/packages/request-error/package.json @@ -2,7 +2,8 @@ "name": "@octokit-next/request-error", "version": "0.0.0-development", "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "type": "module", "description": "Error class for Octokit request errors", diff --git a/packages/request/package.json b/packages/request/package.json index adb72ba..c9e3e2f 100644 --- a/packages/request/package.json +++ b/packages/request/package.json @@ -2,7 +2,8 @@ "name": "@octokit-next/request", "version": "0.0.0-development", "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "type": "module", "description": "Simplified version of `@octokit/request` to experiment with ESM and types", diff --git a/packages/types-openapi-ghec-diff-to-api.github.com/package.json b/packages/types-openapi-ghec-diff-to-api.github.com/package.json index 169c5ba..cae6490 100644 --- a/packages/types-openapi-ghec-diff-to-api.github.com/package.json +++ b/packages/types-openapi-ghec-diff-to-api.github.com/package.json @@ -7,7 +7,8 @@ "directory": "packages/types-openapi-ghec-diff-to-api.github.com" }, "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "version": "0.0.0-development", "types": "index.d.ts", diff --git a/packages/types-openapi-ghec/package.json b/packages/types-openapi-ghec/package.json index 8a671d7..a247dcf 100644 --- a/packages/types-openapi-ghec/package.json +++ b/packages/types-openapi-ghec/package.json @@ -7,7 +7,8 @@ "directory": "packages/types-openapi-ghec" }, "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "version": "0.0.0-development", "types": "index.d.ts", diff --git a/packages/types-openapi-ghes-3.2-diff-to-ghes-3.3/package.json b/packages/types-openapi-ghes-3.2-diff-to-ghes-3.3/package.json index 67b3796..282f72a 100644 --- a/packages/types-openapi-ghes-3.2-diff-to-ghes-3.3/package.json +++ b/packages/types-openapi-ghes-3.2-diff-to-ghes-3.3/package.json @@ -7,7 +7,8 @@ "directory": "packages/types-openapi-ghes-3.2-diff-to-ghes-3.3" }, "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "version": "0.0.0-development", "types": "index.d.ts", diff --git a/packages/types-openapi-ghes-3.2/package.json b/packages/types-openapi-ghes-3.2/package.json index 411e976..95b281d 100644 --- a/packages/types-openapi-ghes-3.2/package.json +++ b/packages/types-openapi-ghes-3.2/package.json @@ -7,7 +7,8 @@ "directory": "packages/types-openapi-ghes-3.2" }, "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "version": "0.0.0-development", "types": "index.d.ts", diff --git a/packages/types-openapi-ghes-3.3-diff-to-ghes-3.4/package.json b/packages/types-openapi-ghes-3.3-diff-to-ghes-3.4/package.json index 7b4d5b4..032b53c 100644 --- a/packages/types-openapi-ghes-3.3-diff-to-ghes-3.4/package.json +++ b/packages/types-openapi-ghes-3.3-diff-to-ghes-3.4/package.json @@ -7,7 +7,8 @@ "directory": "packages/types-openapi-ghes-3.3-diff-to-ghes-3.4" }, "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "version": "0.0.0-development", "types": "index.d.ts", diff --git a/packages/types-openapi-ghes-3.3/package.json b/packages/types-openapi-ghes-3.3/package.json index 478bbc6..a77daf4 100644 --- a/packages/types-openapi-ghes-3.3/package.json +++ b/packages/types-openapi-ghes-3.3/package.json @@ -7,7 +7,8 @@ "directory": "packages/types-openapi-ghes-3.3" }, "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "version": "0.0.0-development", "types": "index.d.ts", diff --git a/packages/types-openapi-ghes-3.4-diff-to-ghes-3.5/package.json b/packages/types-openapi-ghes-3.4-diff-to-ghes-3.5/package.json index 381145c..b13d573 100644 --- a/packages/types-openapi-ghes-3.4-diff-to-ghes-3.5/package.json +++ b/packages/types-openapi-ghes-3.4-diff-to-ghes-3.5/package.json @@ -7,7 +7,8 @@ "directory": "packages/types-openapi-ghes-3.4-diff-to-ghes-3.5" }, "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "version": "0.0.0-development", "types": "index.d.ts", diff --git a/packages/types-openapi-ghes-3.4/package.json b/packages/types-openapi-ghes-3.4/package.json index bc9c518..ff6d05b 100644 --- a/packages/types-openapi-ghes-3.4/package.json +++ b/packages/types-openapi-ghes-3.4/package.json @@ -7,7 +7,8 @@ "directory": "packages/types-openapi-ghes-3.4" }, "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "version": "0.0.0-development", "types": "index.d.ts", diff --git a/packages/types-openapi-ghes-3.5-diff-to-ghes-3.6/package.json b/packages/types-openapi-ghes-3.5-diff-to-ghes-3.6/package.json index 87da248..56fb067 100644 --- a/packages/types-openapi-ghes-3.5-diff-to-ghes-3.6/package.json +++ b/packages/types-openapi-ghes-3.5-diff-to-ghes-3.6/package.json @@ -7,7 +7,8 @@ "directory": "packages/types-openapi-ghes-3.5-diff-to-ghes-3.6" }, "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "version": "0.0.0-development", "types": "index.d.ts", diff --git a/packages/types-openapi-ghes-3.5/package.json b/packages/types-openapi-ghes-3.5/package.json index 6a2ccd7..4840b3d 100644 --- a/packages/types-openapi-ghes-3.5/package.json +++ b/packages/types-openapi-ghes-3.5/package.json @@ -7,7 +7,8 @@ "directory": "packages/types-openapi-ghes-3.5" }, "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "version": "0.0.0-development", "types": "index.d.ts", diff --git a/packages/types-openapi-ghes-3.6-diff-to-api.github.com/package.json b/packages/types-openapi-ghes-3.6-diff-to-api.github.com/package.json index 10fefce..bdb941f 100644 --- a/packages/types-openapi-ghes-3.6-diff-to-api.github.com/package.json +++ b/packages/types-openapi-ghes-3.6-diff-to-api.github.com/package.json @@ -7,7 +7,8 @@ "directory": "packages/types-openapi-ghes-3.6-diff-to-api.github.com" }, "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "version": "0.0.0-development", "types": "index.d.ts", diff --git a/packages/types-openapi-ghes-3.6/package.json b/packages/types-openapi-ghes-3.6/package.json index 9b817fd..dacac07 100644 --- a/packages/types-openapi-ghes-3.6/package.json +++ b/packages/types-openapi-ghes-3.6/package.json @@ -7,7 +7,8 @@ "directory": "packages/types-openapi-ghes-3.6" }, "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "version": "0.0.0-development", "types": "index.d.ts", diff --git a/packages/types-openapi-github.ae-diff-to-api.github.com/package.json b/packages/types-openapi-github.ae-diff-to-api.github.com/package.json index 8f59e86..f923d84 100644 --- a/packages/types-openapi-github.ae-diff-to-api.github.com/package.json +++ b/packages/types-openapi-github.ae-diff-to-api.github.com/package.json @@ -7,7 +7,8 @@ "directory": "packages/types-openapi-github.ae-diff-to-api.github.com" }, "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "version": "0.0.0-development", "types": "index.d.ts", diff --git a/packages/types-openapi-github.ae/package.json b/packages/types-openapi-github.ae/package.json index 14465d2..7588d8d 100644 --- a/packages/types-openapi-github.ae/package.json +++ b/packages/types-openapi-github.ae/package.json @@ -7,7 +7,8 @@ "directory": "packages/types-openapi-github.ae" }, "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "version": "0.0.0-development", "types": "index.d.ts", diff --git a/packages/types-openapi/package.json b/packages/types-openapi/package.json index e15263f..0316abf 100644 --- a/packages/types-openapi/package.json +++ b/packages/types-openapi/package.json @@ -7,7 +7,8 @@ "directory": "packages/types-openapi" }, "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "version": "0.0.0-development", "types": "index.d.ts", diff --git a/packages/types-rest-api-ghec-compatible/package.json b/packages/types-rest-api-ghec-compatible/package.json index 36fba06..fd81d1d 100644 --- a/packages/types-rest-api-ghec-compatible/package.json +++ b/packages/types-rest-api-ghec-compatible/package.json @@ -13,7 +13,8 @@ "openapi-version": "8.0.1" }, "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "repository": { "directory": "packages/types-rest-api-ghec-compatible", diff --git a/packages/types-rest-api-ghec/package.json b/packages/types-rest-api-ghec/package.json index abb70a5..5b64302 100644 --- a/packages/types-rest-api-ghec/package.json +++ b/packages/types-rest-api-ghec/package.json @@ -16,7 +16,8 @@ "openapi-version": "8.0.1" }, "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "repository": { "directory": "packages/types-rest-api-ghec", diff --git a/packages/types-rest-api-ghes-3.2-compatible/package.json b/packages/types-rest-api-ghes-3.2-compatible/package.json index 431f120..d60e9e3 100644 --- a/packages/types-rest-api-ghes-3.2-compatible/package.json +++ b/packages/types-rest-api-ghes-3.2-compatible/package.json @@ -13,7 +13,8 @@ "openapi-version": "8.0.1" }, "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "repository": { "directory": "packages/types-rest-api-ghes-3.2-compatible", diff --git a/packages/types-rest-api-ghes-3.2/package.json b/packages/types-rest-api-ghes-3.2/package.json index 33ccc41..6ce56d5 100644 --- a/packages/types-rest-api-ghes-3.2/package.json +++ b/packages/types-rest-api-ghes-3.2/package.json @@ -17,7 +17,8 @@ "openapi-version": "8.0.1" }, "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "repository": { "directory": "packages/types-rest-api-ghes-3.2", diff --git a/packages/types-rest-api-ghes-3.3-compatible/package.json b/packages/types-rest-api-ghes-3.3-compatible/package.json index 713252a..6a1cf75 100644 --- a/packages/types-rest-api-ghes-3.3-compatible/package.json +++ b/packages/types-rest-api-ghes-3.3-compatible/package.json @@ -13,7 +13,8 @@ "openapi-version": "8.0.1" }, "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "repository": { "directory": "packages/types-rest-api-ghes-3.3-compatible", diff --git a/packages/types-rest-api-ghes-3.3/package.json b/packages/types-rest-api-ghes-3.3/package.json index 71ff9f6..b0e5176 100644 --- a/packages/types-rest-api-ghes-3.3/package.json +++ b/packages/types-rest-api-ghes-3.3/package.json @@ -17,7 +17,8 @@ "openapi-version": "8.0.1" }, "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "repository": { "directory": "packages/types-rest-api-ghes-3.3", diff --git a/packages/types-rest-api-ghes-3.4-compatible/package.json b/packages/types-rest-api-ghes-3.4-compatible/package.json index 085e72c..7ca7a81 100644 --- a/packages/types-rest-api-ghes-3.4-compatible/package.json +++ b/packages/types-rest-api-ghes-3.4-compatible/package.json @@ -13,7 +13,8 @@ "openapi-version": "8.0.1" }, "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "repository": { "directory": "packages/types-rest-api-ghes-3.4-compatible", diff --git a/packages/types-rest-api-ghes-3.4/package.json b/packages/types-rest-api-ghes-3.4/package.json index 5fdd742..4ea3448 100644 --- a/packages/types-rest-api-ghes-3.4/package.json +++ b/packages/types-rest-api-ghes-3.4/package.json @@ -17,7 +17,8 @@ "openapi-version": "8.0.1" }, "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "repository": { "directory": "packages/types-rest-api-ghes-3.4", diff --git a/packages/types-rest-api-ghes-3.5-compatible/package.json b/packages/types-rest-api-ghes-3.5-compatible/package.json index 61d4bd7..67e7813 100644 --- a/packages/types-rest-api-ghes-3.5-compatible/package.json +++ b/packages/types-rest-api-ghes-3.5-compatible/package.json @@ -13,7 +13,8 @@ "openapi-version": "8.0.1" }, "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "repository": { "directory": "packages/types-rest-api-ghes-3.5-compatible", diff --git a/packages/types-rest-api-ghes-3.5/package.json b/packages/types-rest-api-ghes-3.5/package.json index 42c7663..6c6219e 100644 --- a/packages/types-rest-api-ghes-3.5/package.json +++ b/packages/types-rest-api-ghes-3.5/package.json @@ -17,7 +17,8 @@ "openapi-version": "8.0.1" }, "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "repository": { "directory": "packages/types-rest-api-ghes-3.5", diff --git a/packages/types-rest-api-ghes-3.6-compatible/package.json b/packages/types-rest-api-ghes-3.6-compatible/package.json index 1c2cccd..1022762 100644 --- a/packages/types-rest-api-ghes-3.6-compatible/package.json +++ b/packages/types-rest-api-ghes-3.6-compatible/package.json @@ -13,7 +13,8 @@ "openapi-version": "8.0.1" }, "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "repository": { "directory": "packages/types-rest-api-ghes-3.6-compatible", diff --git a/packages/types-rest-api-ghes-3.6/package.json b/packages/types-rest-api-ghes-3.6/package.json index 64d168a..bcb2e82 100644 --- a/packages/types-rest-api-ghes-3.6/package.json +++ b/packages/types-rest-api-ghes-3.6/package.json @@ -16,7 +16,8 @@ "openapi-version": "8.0.1" }, "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "repository": { "directory": "packages/types-rest-api-ghes-3.6", diff --git a/packages/types-rest-api-github.ae-compatible/package.json b/packages/types-rest-api-github.ae-compatible/package.json index 558f5f8..64ca68e 100644 --- a/packages/types-rest-api-github.ae-compatible/package.json +++ b/packages/types-rest-api-github.ae-compatible/package.json @@ -13,7 +13,8 @@ "openapi-version": "8.0.1" }, "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "repository": { "directory": "packages/types-rest-api-github.ae-compatible", diff --git a/packages/types-rest-api-github.ae/package.json b/packages/types-rest-api-github.ae/package.json index b93f6cc..0b741a6 100644 --- a/packages/types-rest-api-github.ae/package.json +++ b/packages/types-rest-api-github.ae/package.json @@ -16,7 +16,8 @@ "openapi-version": "8.0.1" }, "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "repository": { "directory": "packages/types-rest-api-github.ae", diff --git a/packages/types-rest-api/package.json b/packages/types-rest-api/package.json index 06c2f7a..91b3e5a 100644 --- a/packages/types-rest-api/package.json +++ b/packages/types-rest-api/package.json @@ -2,7 +2,8 @@ "name": "@octokit-next/types-rest-api", "version": "0.0.0-development", "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "type": "module", "description": "Types for github.com REST API requests and responses", diff --git a/packages/types/package.json b/packages/types/package.json index 2ebb396..699b029 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,7 +1,7 @@ { "name": "@octokit-next/types", "version": "0.0.0-development", - "publishConfig": { "access": "public" }, + "publishConfig": { "access": "public","provenance": true }, "type": "module", "description": "Shared TypeScript definitions for upcoming Octokit SDK", "exoprts": "./index.js", diff --git a/scripts/types-openapi/update.js b/scripts/types-openapi/update.js index 2bc55db..bc96325 100644 --- a/scripts/types-openapi/update.js +++ b/scripts/types-openapi/update.js @@ -12,6 +12,7 @@ run(); const packageDefaults = { publishConfig: { access: "public", + provenance: true, }, version: "0.0.0-development", types: "index.d.ts", diff --git a/scripts/types-rest-api-diff/update.js b/scripts/types-rest-api-diff/update.js index 9153b02..bb78f20 100644 --- a/scripts/types-rest-api-diff/update.js +++ b/scripts/types-rest-api-diff/update.js @@ -33,6 +33,7 @@ const packageDefaults = { type: "module", publishConfig: { access: "public", + provenance: true, }, version: "0.0.0-development", types: "index.d.ts",