Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to make release please work after an accidental major version bump ( release-please failed: Resource not accessible by integration) #1070

Open
praveenpuglia opened this issue Dec 24, 2024 · 1 comment
Assignees
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. type: question Request for information or clarification. Not an issue.

Comments

@praveenpuglia
Copy link

Hi!

My package was at 2.7.6. I introduced release-please and it thought it should make a v.4.0.0 based on the commits and changelog.

It wasn't supposed to be merged and released that way but it happened. I removed the tag v4.0.0 but ever since, I have not been able to get release please to work and release a version like 2.7.7 and so on.

Here's my config file for the workflow.

Workflow

name: release-please
permissions: write-all
on:
  push:
    branches:
      - master
jobs:
  release-please:
    runs-on: ubuntu-latest
    if: ${{!contains(github.event.head_commit.message, 'release-please')}}
    steps:
      - name: Checkout Code
        uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - name: Setup Volta
        uses: volta-cli/action@v4

      - name: Run release-please
        uses: googleapis/release-please-action@v4

I have tried the bootstrap-sha and last-release-sha options but they didn't change anything.

Here's what I am getting in the workflow instead.

Run googleapis/release-please-action@v4
  with:
    token: ***
    repo-url: smallcase/sc-fe-utils
    github-api-url: https://api.github.com
    github-graphql-url: https://api.github.com/graphql
    fork: false
    include-component-in-tag: false
    skip-github-release: false
    skip-github-pull-request: false
    changelog-host: https://github.com
  env:
    VOLTA_HOME: /opt/hostedtoolcache/volta/[2](https://github.com/smallcase/sc-fe-utils/actions/runs/12485681896/job/34844793233#step:4:2).0.2/x64
Running release-please version: 16.12.0
❯ Fetching release-please-config.json from branch master
❯ Fetching .release-please-manifest.json from branch master
✔ Building releases
✔ Building strategies by path
❯ .: node
❯ Found pull request #11[4](https://github.com/smallcase/sc-fe-utils/actions/runs/12485681896/job/34844793233#step:4:4): 'chore(master): release 4.0.0'
✔ Building release for path: .
❯ type: node
❯ targetBranch: master
❯ Fetching package.json from branch master
✔ Creating 1 releases for pull #[11](https://github.com/smallcase/sc-fe-utils/actions/runs/12485681896/job/34844793233#step:4:11)4
Error: release-please failed: Resource not accessible by integration

If I understand this correctly, it's still trying to pull data from a v4.0.0 that doens't exist anymore.

I have tried enabling / disabling the actions permissions from GitHub settings as well but to no avail.

What am I doing wrong? How can I reset everything?

@praveenpuglia praveenpuglia added priority: p3 Desirable enhancement or fix. May not be included in next release. type: question Request for information or clarification. Not an issue. labels Dec 24, 2024
@praveenpuglia
Copy link
Author

@NancyGarg98 - Reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

2 participants