Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

semantic-release-pnpm-deps

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

semantic-release-pnpm-deps

It's a semantic-release plugin to analyze dependencies updates in pnpm workspace and auto publish a new version if necessary.

  • 0.0.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

semantic-release-pnpm-deps

It's a semantic-release plugin to analyze dependencies updates in pnpm workspace and auto publish a new version if necessary.

Feature

  • Support analyze dependencies / devDependencies / peerDependencies types.
  • Update the changelog.md the dependenices / devDependencies / peerDependencies updates.
  • Can skip some packgaes or skip some dependenices;

How it works

The plugin will run the semantic-release life cycle steps:

StepDescription
verifyConditionsVerify the pnpm environment. Verify the plug-in configuration.
analyzeCommitsAnalyze whether the internal dependencies of the current package have been updated and decide whether to release a new version.
generateNotesGenerate notes related to dependent updates.
successRecord the successful release of the current package version to provide information for subsequent dependency analysis of other packages.

Install

$ npm install semantic-release-pnpm-deps -D
$ npm install semantic-release-monorepo -D  # peerDependencies
$ npm install semantic-release-plugin-pnpm -D # peerDependencies

Config

The plugin can be configured in the semantic-release configuration file:

{
  branches: ['master', { name: 'alpha', prerelease: true }, { name: 'beta', prerelease: true }],
  dryRun: true,
  extends: 'semantic-release-monorepo', // [peerDependencies] support monorepo of semantic-release
  plugins: [
    '@semantic-release/commit-analyzer',
    '@semantic-release/release-notes-generator',
    'semantic-release-plugin-pnpm', // [peerDependencies] replace `@semantic-release/npm`, support pnpm public
    [
      '@semantic-release/changelog',
      {
        changelogFile: 'CHANGELOG.md'
      }
    ],
    [
      '@semantic-release/git',
      {
        assets: ['CHANGELOG.md', 'package.json'], 
        message: 'chore(release): ${nextRelease.version} [skip ci] [CI SKIP] \n\n${nextRelease.notes}'
      }
    ],
    [
      'semantic-release-pnpm-deps',  // [Usage] support pnpm worspace dependenices analyze, auto release new version
      {
        analyzeDepTypes: ['dependencies', 'devDependencies', 'peerDependencies'],
        depsAutoReleaseType: 'patch', // inherit | major | minor | patch(default)
        ignorePackages: [], // e.g: ['@test/pkg1']
        ignoreDeps: {} // e.g {'@test/pkg5' : ['@test/pkg1', '@test/pkg2']}
      }
    ],
    [
      '@semantic-release/exec',
      {
        verifyReleaseCmd: 'pnpm build'
      }
    ]
  ],
}

Usage

in workspace package.json :

{
  "scripts": {
    "semantic-release-mono": "pnpm -r --workspace-concurrency=1 exec -- npx --no-install semantic-release -e semantic-release-monorepo"
  }
}

Keywords

FAQs

Package last updated on 19 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc