diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0a1a90ac..62dcbb9c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,6 +39,9 @@ jobs: BRANCH_NAME: ${{ github.head_ref || github.ref_name }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Publish to npm (Trusted Publisher) + run: npm publish --provenance --access public + - name: Build Static Asset run: npm run build-static diff --git a/package.json b/package.json index 1e667f2d..75883274 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,9 @@ "require": "./dist/cast-ui.umd.js" } }, + "publishConfig": { + "provenance": true + }, "sideEffects": [ "**/*.css" ], @@ -98,4 +101,4 @@ "path": "./node_modules/cz-conventional-changelog" } } -} +} \ No newline at end of file diff --git a/release.config.cjs b/release.config.cjs index 384893d2..02919bf7 100644 --- a/release.config.cjs +++ b/release.config.cjs @@ -9,7 +9,7 @@ const config = { plugins: [ 'commit-analyzer-fail-on-no-release', '@semantic-release/release-notes-generator', - '@semantic-release/npm', + ['@semantic-release/npm', { npmPublish: false }], '@semantic-release/github', ], };