pascalgn / npm-publish-action

GitHub action to automatically publish packages to npm
MIT License
221 stars 29 forks source link

can't publish release due to yarn (ignoring scope?) #21

Closed Rexogamer closed 4 years ago

Rexogamer commented 4 years ago

I forked a repo and made a new package on NPM under the @cytrus-re scope, which I own. However, when I pushed a release commit, it failed. Seemingly I don't have access to the Yarn listing. Personally I thought this was going to publish explicitly to NPM?

Action version: 1.3.3

Logs


Run pascalgn/npm-publish-action@06e0830ea83eea10ed4a62654eeaedafb8bf50fc
  with:
    tag_name: v%s
    tag_message: v%s
    commit_pattern: ^release: (\S+)
    workspace: .
  env:
    GITHUB_TOKEN: ***
    NPM_AUTH_TOKEN: ***
/usr/bin/docker run --name cba2b75ac70cd749c89bae4d345d9fccfb_22475b --label 8118cb --workdir /github/workspace --rm -e GITHUB_TOKEN -e NPM_AUTH_TOKEN -e INPUT_TAG_NAME -e INPUT_TAG_MESSAGE -e INPUT_COMMIT_PATTERN -e INPUT_WORKSPACE -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/wikipediajs/wikipediajs":"/github/workspace" 8118cb:a2b75ac70cd749c89bae4d345d9fccfb Found commit: release: 1.4.2
Executing: git rev-parse -q --verify refs/tags/v1.4.2
Executing: git config user.name Cytrus-RE
Executing: git config user.email 
Executing: git tag -a -m v1.4.2 v1.4.2
Executing: git push origin refs/tags/v1.4.2
Tag has been created successfully: v1.4.2
Executing: yarn publish --non-interactive --new-version 1.4.2
command failed with code 1
error Couldn't publish package: "https://registry.yarnpkg.com/wikipediajs: You do not have permission to publish \"wikipediajs\". Are you logged in as the correct user?"
command failed with code 1
Rexogamer commented 4 years ago

I forgot to update the name of the package in the package.json (I couldn't publish locally either). Closing as fixed.