Skip to content
This repository was archived by the owner on Dec 7, 2023. It is now read-only.

Commit a7c4243

Browse files
committed
fix package name env var
1 parent 2a5e026 commit a7c4243

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shell.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ let
140140
publish = pkgs.writeShellScriptBin "publish" ''
141141
echo //registry.npmjs.org/:_authToken=''${NPM_TOKEN} > .npmrc
142142
143-
PACKAGE_NAME=$(node -p "require('./package.json').name")
144-
PACKAGE_VERSION=$(node -p "require('./package.json').version")
143+
echo PACKAGE_NAME=$(node -p "require('./package.json').name") | tr -d @ | tr / -
144+
echo PACKAGE_VERSION=$(node -p "require('./package.json').version")
145145
npm pack
146146
npm publish ./$PACKAGE_NAME-$PACKAGE_VERSION.tgz --access public
147147
'';

0 commit comments

Comments
 (0)