Skip to content

Commit

Permalink
ci.yml: non-sudo npm install
Browse files Browse the repository at this point in the history
  • Loading branch information
ilg-ul committed Oct 12, 2023
1 parent 91a9d71 commit 07e8e12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Install xpm@${{ matrix.xpm-version }} on Unix
if: runner.os != 'Windows'
run: sudo npm install -g xpm@${{ matrix.xpm-version }}

- name: Install xpm@${{ matrix.xpm-version }} on Windows
if: runner.os == 'Windows'
- name: Install xpm@${{ matrix.xpm-version }}
run: npm install -g xpm@${{ matrix.xpm-version }}

- name: Show node & npm versions, environment
Expand Down
7 changes: 1 addition & 6 deletions templates/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,7 @@ jobs:
npm --version
env
- name: Install xpm@${{ matrix.xpm-version }} on Unix
if: runner.os != 'Windows'
run: sudo npm install -g xpm@${{ matrix.xpm-version }}

- name: Install xpm@${{ matrix.xpm-version }} on Windows
if: runner.os == 'Windows'
- name: Install xpm@${{ matrix.xpm-version }}
run: npm install -g xpm@${{ matrix.xpm-version }}

- name: Satisfy project dependencies
Expand Down

0 comments on commit 07e8e12

Please sign in to comment.