Skip to content

Commit

Permalink
chore: the --no-git-checks configuration item is added when publishin…
Browse files Browse the repository at this point in the history
…g in the CI environment
  • Loading branch information
liaoruikang committed Dec 13, 2024
1 parent 1a58111 commit 1730088
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ jobs:
- name: Install deps
run: pnpm install
- name: publish
run: pnpm release --provenance
run: pnpm release
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
7 changes: 2 additions & 5 deletions scripts/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import pc from 'picocolors';
import { cmp } from 'semver';

const {
values: { tag, 'skip-build': skipBuild, registry, provenance },
values: { tag, 'skip-build': skipBuild, registry },
positionals
} = parseArgs({
args: argv.slice(2),
Expand All @@ -21,9 +21,6 @@ const {
registry: {
type: 'string'
},
provenance: {
type: 'boolean'
},
'skip-build': {
type: 'boolean'
}
Expand Down Expand Up @@ -67,7 +64,7 @@ const publish = async (id: string) => {
'--access',
'public',
...(registry ? ['--registry', registry] : []),
...(provenance ? ['--provenance'] : [])
...(process.env.CI ? ['--provenance', '--no-git-checks'] : [])
],
{
cwd: id
Expand Down

0 comments on commit 1730088

Please sign in to comment.