github-package-registry

Installing private package from Github Package registry using Yarn fails with not authorized

谁都会走 提交于 2020-06-25 03:24:47
问题 This question is related to these. But none of the solutions worked for me. Yarn can't find private Github npm registry Installing private package from Github Package registry fails with not found/not authorized I can install a package without issues with npm install @scope/package however I cannot do the same with yarn: yarn add @scope/package yarn throws the following error: An unexpected error occurred: "https://npm.pkg.github.com/download/@scope/package/1.2.8

Download private module from Github Package Registry via Yarn within a Github Action? Publishing works, but installing is met with '401 Unauthorized'

我与影子孤独终老i 提交于 2020-06-12 05:40:31
问题 For various reasons we are stuck using yarn managing our packages so we can't rely on a package-lock.json to use npm with github actions. We cannot get Yarn to authenticate as part of a github action. We've got our repo npmrc configured as: @COMPANY:registry=https://npm.pkg.github.com registry=https://registry.npmjs.org/ And we're using this action for yarn. Here's a basic setup where we're just trying to install the modules -- nothing more. name: CI on: [push] jobs: build: name: Test runs-on

Installing private package from Github Package registry fails with not found/not authorized

為{幸葍}努か 提交于 2020-05-13 06:41:13
问题 I created and published a private Github package. Trying to install it with yarn at first, I face the following issue: Whether I try with yarn or npm, it cannot find the package at all although following the exact steps documented by Github (https://help.github.com/en/github/managing-packages-with-github-package-registry/configuring-npm-for-use-with-github-package-registry). My .yarnrc : registry "https://npm.pkg.github.com/OWNER" With yarn, it continuously tries to look for the package at

How to see what Maven is sending to a server during deploy?

跟風遠走 提交于 2020-03-02 19:33:38
问题 I'm trying to use Github's new Actions CI server to deploy packages to Github's new packages feature. It's not going well. I think it's all set up correctly, but I get this error: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project myproject: Failed to deploy artifacts: Could not find artifact com.mycompany:myproject:pom:1.5 in github (https://maven.pkg.github.com/mycompany/mycompany_repository) -> [Help 1] This happens after it appears

How to see what Maven is sending to a server during deploy?

孤者浪人 提交于 2020-03-02 19:31:46
问题 I'm trying to use Github's new Actions CI server to deploy packages to Github's new packages feature. It's not going well. I think it's all set up correctly, but I get this error: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project myproject: Failed to deploy artifacts: Could not find artifact com.mycompany:myproject:pom:1.5 in github (https://maven.pkg.github.com/mycompany/mycompany_repository) -> [Help 1] This happens after it appears

Exception while trying to deploy Maven build JAR to github package registry

…衆ロ難τιáo~ 提交于 2020-01-23 17:36:05
问题 I am trying to deploy the Maven build JAR to Github Package Registry. I am getting exception when I execute mvn deploy command. I am using a simple Maven project which I want to create a component JAR and store in Github Package Registry. The build is successful I now want to deploy this artifact to registry. I have added the below in ~./m2/settings.xml . Added a repository element under repositories in profile . <repository> <id>github</id> <name>GitHub OWNER Apache Maven Packages</name>

Github Package Registry how to delete a version

十年热恋 提交于 2020-01-15 11:05:06
问题 I have read the instructions on how to delete a version here: https://help.github.com/en/github/managing-packages-with-github-packages/deleting-a-package When I tried to use the curl, it just gives me this error: { "message": "Problems parsing JSON", "documentation_url": "https://developer.github.com/v4" } This is my curl: curl -X POST -H "Accept: application/vnd.github.package-deletes-preview+json" -H "Authorization: bearer PERSONALACCESSTOKEN" -d '{"query":"mutation { deletePackageVersion

Accessing Private Maven Github Package Registry with Gradle

*爱你&永不变心* 提交于 2019-12-21 19:48:36
问题 I have a private repository under user X and repository name Y : https://github.com/X/Y This a Java project built with Gradle. The Gradle configuration file has been configured as explained in the official Github Package Registry documentation and I am able to publish my package with success: https://help.github.com/en/articles/configuring-gradle-for-use-with-github-package-registry#publishing-a-package publishing { repositories { maven { name = "GitHubPackages" url = uri("https://maven.pkg

deploy to Github Package Registry from Github Action

◇◆丶佛笑我妖孽 提交于 2019-12-06 08:01:21
问题 I would like to deploy to a GitHub Package Registry from a GitHub Action of a public repo. I have a yml file for a workflow: name: My CI on: [push] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: Install dependencies run: lein deps - name: Run tests run: lein test - name: Generate pom run: lein pom - name: Deploy run: mvn deploy I use Leiningen to build the project and generate a POM file. Then I would like to use Maven to deploy the artifact to the GitHub

How to add GitHub Package Registry package as a Gradle dependency

血红的双手。 提交于 2019-11-30 21:19:57
So, I have a GitHub project with a Package Registry configured. It has two packages: Package pages have instructions only for Maven, besides that, the instructions are broken ( maven install so57323260 is not a valid way to add a dependency in Maven): Question is: how do I add that package in a Gradle build? First, configure Github Package Registry as a Maven repository in your Gradle build config: build.gradle.kts: repositories { jcenter() maven("https://maven.pkg.github.com/madhead") { credentials { username = "madhead" password = "<token>" } } } You can generate a token in your account