game-ci / game-ci/unity-builder

UPM config on Windows runners

Open
#618 9 comments 0 reactions 0 assignees View on GitHub
help wanted question
Dominant language
TypeScript
Stars
1.1k
Forks
313
Avg merge
1h 39m
Merged PRs (30d)
1

Description

Hello,

According to the documentation, UPM authentication on Ubuntu is configured by creating the upmconfig file under `/home/runner/work/_temp/_github_home`.

In which directory should this file be placed on Windows runners?

I already tried to use `$HOME` and change the Ubuntu example from the documentation as follows:

- name: Create .upmconfig.toml UPM authentication file
env:
npm_token: ${{ secrets.NPM_TOKEN }}
run: |
cd $HOME
echo "[npmAuth.`"https://upm.example.com`"]" > .upmconfig.toml
echo "_auth = `"$Env:npm_token`"" >> .upmconfig.toml
echo "alwaysAuth = true" >> .upmconfig.toml

But this still gives me the message "... failed because it lacks valid authentication credentials" when the package manager tries to resolve the dependencies, whereas on Ubuntu everything works as expected.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.