Skip to content

Commit 28d72a6

Browse files
author
Derek
committed
fix: Linear CLI installation uses user npm-global directory
The Linear CLI was being installed system-wide with root permissions, but the verify task expected it at ~/.npm-global/bin/linear. Changed installation to use NPM_CONFIG_PREFIX environment variable and run as the target user, matching the pattern used for semantic-release. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
1 parent 8a6472a commit 28d72a6

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
---
2-
# Linear.app CLI installation (system-wide via npm)
2+
# Linear.app CLI installation (user-specific via npm)
33

4-
- name: Install Linear CLI system-wide (Linux)
4+
- name: Install Linear CLI globally for user (Linux)
55
community.general.npm:
66
name: '@digitalstories/linear-cli'
77
global: true
88
state: present
9+
environment:
10+
NPM_CONFIG_PREFIX: "{{ dfe_user_home }}/.npm-global"
11+
become: false
12+
become_user: "{{ dfe_actual_user }}"
913
when: ansible_distribution in ['Fedora', 'Ubuntu']
1014

11-
- name: Install Linear CLI system-wide (macOS)
15+
- name: Install Linear CLI globally for user (macOS)
1216
community.general.npm:
1317
name: '@digitalstories/linear-cli'
1418
global: true
1519
state: present
16-
environment: "{{ homebrew_env }}"
20+
environment: "{{ npm_config_env }}"
1721
become: false
1822
when: ansible_distribution == 'MacOSX'

0 commit comments

Comments
 (0)