+19
| # How to publish a new version | ||
| Make sure you're logged into npm (`npm whoami`). | ||
| ```bash | ||
| # 1. Bump version (choose one) | ||
| npm version patch # 2.0.0 → 2.0.1 | ||
| npm version minor # 2.0.0 → 2.1.0 | ||
| npm version major # 2.0.0 → 3.0.0 | ||
| # 2. Push the commit and tag | ||
| git push --follow-tags | ||
| # 3. Create a GitHub release | ||
| gh release create v$(node -p "require('./package.json').version") --generate-notes | ||
| # 4. Publish to npm | ||
| npm publish | ||
| ``` |
+1
-1
| { | ||
| "name": "git-filter", | ||
| "version": "2.0.0", | ||
| "version": "2.0.1", | ||
| "description": "Create a filtered copy of a git repo with full commit history preserved", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
| #!/usr/bin/env bash | ||
| VERSION=$(node index.js --version) | ||
| git tag -a v${VERSION} -m "Publish ${VERSION}" | ||
| npm publish | ||
| git push --tags origin master |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
97658
0.3%