diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 050b68e..deed47a 100755 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -48,6 +48,7 @@ jobs: runs-on: ubuntu-latest permissions: id-token: write + contents: read steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 with: @@ -61,5 +62,3 @@ jobs: - run: pnpm install - run: pnpm build - run: NPM_CONFIG_PROVENANCE=true pnpm run release:npm:registry - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 53b7ff8..8ae5285 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "openapi-generator", "typescript" ], - "homepage": "https://github.com/Himenon/openapi-typescript-code-generator#readme", + "homepage": "https://github.com/Himenon/openapi-typescript-code-generator", "bugs": { "url": "https://github.com/Himenon/openapi-typescript-code-generator/issues" }, @@ -66,8 +66,8 @@ "format": "biome check --write --unsafe .", "lerna:version:up": "lerna version --yes", "lint": "biome check .", - "release:github:registry": "pnpm publish --no-git-checks --registry https://npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}", - "release:npm:registry": "pnpm publish --no-git-checks", + "release:npm:registry": "pnpm publish --access public --no-git-checks", + "release:github:registry": "pnpm publish --access public --no-git-checks", "test": "run-p test:depcruise test:vitest test:code:gen:* test:snapshot", "test:code:gen": "run-p test:code:gen:*", "test:code:gen:class": "pnpm ts ./scripts/testCodeGenWithClass.ts",