Skip to content

Commit

Permalink
feat(post-release-check.yml): run executables as part of check
Browse files Browse the repository at this point in the history
  • Loading branch information
Xunnamius committed Jan 29, 2021
1 parent 43d2d35 commit 31bdc0c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/post-release-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
env:
# * Selectively enable debugger verbose output in the pipeline
# ? See also: https://www.npmjs.com/package/debug#wildcards
# DEBUG: '@xunnamius/do-not-install:*'
# DEBUG: 'git-add-then-commit:*'
NODE_CURRENT_VERSION: 15.x
NODE_TEST_VERSIONS: '"12.x", "14.x"' # * NODE_CURRENT_VERSION included automatically

Expand Down Expand Up @@ -57,9 +57,14 @@ jobs:
PKG_PRIVATE=`node -e 'console.log(require("./package.json").private || "false")'`
PKG_NAME=`node -e 'console.log(require("./package.json").name)'`
PKG_VERSION=`node -e 'console.log(require("./package.json").version)'`
PKG_BIN=`node -e 'const bin = require("./package.json").bin; bin && console.log(Object.entries(bin)[0][0])'`
! [ -z "$DEBUG" ] && echo "PKG_PRIVATE=$PKG_PRIVATE" || true
! [ -z "$DEBUG" ] && echo "PKG_NAME=$PKG_NAME" || true
! [ -z "$DEBUG" ] && echo "PKG_VERSION=$PKG_VERSION" || true
! [ -z "$DEBUG" ] && echo "PKG_BIN=$PKG_BIN" || true
if ! [ "$PKG_PRIVATE" = "false" ]; then npm install "${PKG_NAME}@${PKG_VERSION}"; fi
if ! [ "$PKG_PRIVATE" = "false" ]; then
npm install "${PKG_NAME}@${PKG_VERSION}"
! [ -z "$PKG_BIN" ] && npx --no-install $PKG_BIN --help
fi

0 comments on commit 31bdc0c

Please sign in to comment.