-
Notifications
You must be signed in to change notification settings - Fork 257
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
Pushing to repo fails... possibly related to publishing to GPR? #106
Comments
It looks like the action was not able to push out to the |
coming back to this again... forgot i made this ticket and am again experiencing this issue. No idea what that branch ( Initially when I saw that I thought it was mistakenly trying to push back to |
Since you have configured Changesets action to be run on your As to the usage without a pull request workflow - I'm unsure how to handle this right now because the changeset files have to be removed somehow from your repository and currently they are usually removed within that versioning PR. It's an interesting use case and I might look into it sometime in the future but I can't promise that it will be done any time soon. If you have any idea on how this could work - let me know, I'll try to consider it. |
I have the same problem, I ran into the same problem, and instead of using npm, I simply used the first example of the README.md Without Publishing |
I solved the problem. Maybe you can try my method - name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false |
#179 Maybe you need confirm this |
@hcg1023 this solved my problem. Workflows need more permissions. |
☝️ the defaults for new repos and orgs definitely cause this failure. This should be in the docs. |
If you don't want to give all actions read/write by default: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idpermissions ...
jobs:
release:
name: Release
runs-on: ubuntu-latest
+ permissions: write-all
steps:
- name: Checkout Repo
# ... |
Heya Guys, I have this little library within which I'm trying to implement changesets.
Initially I wanted to just process changesets, bump versions and publish new npm package when master changes, although now I realise that due to #77 it could be unfeasible?
In any case, I'm now just trying to get it working in the first place, so it goes through the pull request flow.
Variation on my situation is that my npm repo is the github package repository and I'm using pnpm and asdf (if that matters).
Error I'm getting when i merge the PR is
You can see it here : https://github.com/airtonix/lootr/runs/3391442726?check_suite_focus=true#step:7:26
my workflow file is here: https://github.com/airtonix/lootr/blob/8e004098ce7c8834769f0680db88f9f7f57c19d8/.github/workflows/release.yml
something to note, is that previous to bring in changesets, my pnpm publishing required the use of setting a
NODE_AUTH_TOKEN
due toactions/setup-node@v2
creating a.npmrc
for me.The text was updated successfully, but these errors were encountered: