wip
This commit is contained in:
parent
614e4b29b8
commit
3400be3a81
9
.github/workflows/osrm-backend.yml
vendored
9
.github/workflows/osrm-backend.yml
vendored
@ -36,7 +36,11 @@ jobs:
|
|||||||
node-version: 16
|
node-version: 16
|
||||||
- run: node --version
|
- run: node --version
|
||||||
- run: npm --version
|
- run: npm --version
|
||||||
- run: bash env.sh
|
- name: Prepare environment
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
PACKAGE_JSON_VERSION=$(node -e "console.log(require('./package.json').version)")
|
||||||
|
echo PUBLISH=$([[ "${GITHUB_REF:-}" == "refs/tags/v${PACKAGE_JSON_VERSION}" ]] && echo "On" || echo "Off") >> $GITHUB_ENV
|
||||||
- run: bash -c "echo \"$GITHUB_ENV\""
|
- run: bash -c "echo \"$GITHUB_ENV\""
|
||||||
- run: npm ci --ignore-scripts
|
- run: npm ci --ignore-scripts
|
||||||
- run: node -e "require('nan')"
|
- run: node -e "require('nan')"
|
||||||
@ -52,9 +56,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
./lib/binding/osrm-datastore.exe test/data/ch/monaco.osrm
|
./lib/binding/osrm-datastore.exe test/data/ch/monaco.osrm
|
||||||
npm run nodejs-tests
|
npm run nodejs-tests
|
||||||
- name: Build Node package
|
|
||||||
run: |
|
|
||||||
./node_modules/.bin/node-pre-gyp reveal
|
|
||||||
- name: Build Node package
|
- name: Build Node package
|
||||||
run: bash ./scripts/ci/node_package.sh
|
run: bash ./scripts/ci/node_package.sh
|
||||||
- name: Publish Node package
|
- name: Publish Node package
|
||||||
|
|||||||
@ -6,7 +6,6 @@ set -o pipefail
|
|||||||
echo "node version is:"
|
echo "node version is:"
|
||||||
which node
|
which node
|
||||||
node -v
|
node -v
|
||||||
PUBLISH=On
|
|
||||||
|
|
||||||
if [[ ${PUBLISH} == 'On' ]]; then
|
if [[ ${PUBLISH} == 'On' ]]; then
|
||||||
echo "PUBLISH is set to '${PUBLISH}', publishing!"
|
echo "PUBLISH is set to '${PUBLISH}', publishing!"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user