Making APM work on dev builds

This commit is contained in:
Maurício Szabo 2022-08-18 21:00:33 -03:00
parent acdb2fc35b
commit ef17344c6e
2 changed files with 6 additions and 1 deletions

View File

@ -2,6 +2,8 @@ name: Package tests for Pulsar on Linux
on:
- push
- pull_request
env:
APM_PATH: ./apm/node_modules/atom-package-manager/bin/apm
jobs:
setup:
name: setup
@ -27,6 +29,9 @@ jobs:
- name: build dependencies
run: yarn build
- name: build dependencies
run: yarn build:apm
- name: cache node module
id: cache-node
uses: actions/cache@v3

View File

@ -190,7 +190,7 @@ module.exports = class PackageManager {
// Return a {String} file path to apm.
getApmPath() {
const configPath = atom.config.get('core.apmPath');
if (configPath || this.apmPath) {
if (process.env.APM_PATH || configPath || this.apmPath) {
return configPath || this.apmPath;
}