Skip to content
Snippets Groups Projects
Verified Commit 53a1d488 authored by Dmytro Bogatov's avatar Dmytro Bogatov :two_hearts:
Browse files

Publish NPM from CI.

parent 9d720eea
Branches
No related tags found
No related merge requests found
Pipeline #7115 passed
......@@ -40,10 +40,16 @@ release:
if [ "$LATEST_VERSION" = "$THIS_VERSION" ]
then
echo "This version has already been published"
else
sed -i "s#\"$PACKAGE\"#\"@dbogatov/$PACKAGE\"#g" package.json
npm publish
exit 0
fi
- sed -i "s#\"$PACKAGE\"#\"@dbogatov/$PACKAGE\"#g" package.json
- npm publish
- |
cat <<EOT > .npmrc
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
EOT
- sed -i "s#\"@dbogatov/$PACKAGE\"#\"$PACKAGE\"#g" package.json
- npm publish
rules:
- if: '$CI_COMMIT_REF_NAME == "master"'
when: on_success
......
{
"name": "broken-links-inspector",
"version": "0.2.3",
"version": "0.2.4",
"description": "Extract and recursively check all URLs reporting broken ones",
"main": "dist/inspector.js",
"types": "dist/inspector.d.ts",
......
......@@ -6,7 +6,7 @@ import { Inspector, URLsMatchingSet, Config } from "./inspector"
import { ConsoleReporter, JUnitReporter } from "./report"
commander
.version("0.1.0") // TODO automatically
.version("0.2.3")
.description("Extract and recursively check all URLs reporting broken ones")
commander
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment