github-actions

Caching npm dependency with github action

与世无争的帅哥 提交于 2020-12-02 20:47:30
问题 I want to cache npm dependencies so that I does not do npm install every time I push and instead just load it from cache. I think github action support this now?: How do I cache steps in GitHub actions? Here are few cases If package.json changes, which means yarn.lock or package-lock.json changed so do npm install and update cache Extending my above point, the contributor could be doing both yarn install and npm install From the same above question, I changed my github action to something

Github actions, 401 unauthorized when installing a Github Package with npm or yarn

徘徊边缘 提交于 2020-11-24 16:29:09
问题 When I try to install my npm modules from a GitHub action I get the following error: npm ERR! 401 Unauthorized - GET https://npm.pkg.github.com/@xxxx%2fxxxx-analytics - Your request could not be authenticated by the GitHub Packages service. Please ensure your access token is valid and has the appropriate scopes configured. Before you comment, I have configured the .npmrc correctly with the scope and access token, and everything works fine when installing the private package locally. Here is

Github actions, 401 unauthorized when installing a Github Package with npm or yarn

点点圈 提交于 2020-11-24 16:27:43
问题 When I try to install my npm modules from a GitHub action I get the following error: npm ERR! 401 Unauthorized - GET https://npm.pkg.github.com/@xxxx%2fxxxx-analytics - Your request could not be authenticated by the GitHub Packages service. Please ensure your access token is valid and has the appropriate scopes configured. Before you comment, I have configured the .npmrc correctly with the scope and access token, and everything works fine when installing the private package locally. Here is

Github actions, 401 unauthorized when installing a Github Package with npm or yarn

吃可爱长大的小学妹 提交于 2020-11-24 16:22:25
问题 When I try to install my npm modules from a GitHub action I get the following error: npm ERR! 401 Unauthorized - GET https://npm.pkg.github.com/@xxxx%2fxxxx-analytics - Your request could not be authenticated by the GitHub Packages service. Please ensure your access token is valid and has the appropriate scopes configured. Before you comment, I have configured the .npmrc correctly with the scope and access token, and everything works fine when installing the private package locally. Here is