expo publish with access token not working

Expo SDK 45
Expo CLI 5.5.1
Account type: Organisation (it was originally a personal account that was converted to an org)

When running EXPO_TOKEN=MY_ROBOT_ACCESS_TOKEN expo publish expo publish --release-channel=staging-pr-140 it results in an error Must have PUBLISH access for this project.

Analyzing assets
Saving assets
No assets changed, skipped.

Processing asset bundle patterns:
- /Users/MY_USER/MY_PROJECT/**/*

Uploading JavaScript bundles
**Must have PUBLISH access for this project.**

This also fails when running it from a Github action

name: QA Build and Review
on: [pull_request]
    name: Install and publish
    runs-on: ubuntu-latest
      - name: Checkout code
        uses: actions/checkout@v2

      - name: Setup Node
        uses: actions/setup-node@v1
          node-version: 14.x

      - name: Authenticate with GitHub package registry
        run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc

      - name: 🏗 Setup Expo
        uses: expo/expo-github-action@v7
          expo-version: 5.x
          token: ${{ secrets.EXPO_TOKEN }}
      - run: yarn install
      - run: expo publish --release-channel=staging-pr-${{ github.event.number }} --non-interactive
      - uses: unsplash/comment-on-pr@master
          GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
          msg: App is ready for review, you can [see it here](https://expo.io/@MY_ORG/MY_APP?release-channel=staging-pr-${{ github.event.number }}).

  "expo": {
    "name": "MY_APP",
    "slug": "MY_SLUG",
    "owner": "MY_OWNER",
    "version": "1.0.0",
    "orientation": "portrait",
    "icon": "./assets/images/icon.png",
    "userInterfaceStyle": "dark",
    "splash": {
      "resizeMode": "contain",
      "backgroundColor": "#0D0D0D"
    "updates": {
      "fallbackToCacheTimeout": 0
    "assetBundlePatterns": ["**/*"],
    "ios": {
      "supportsTablet": true
    "android": {
      "adaptiveIcon": {
        "foregroundImage": "./assets/images/adaptive-icon.png",
        "backgroundColor": "#0D0D0D"
    "web": {
      "favicon": "./assets/images/favicon.png"

The robot has “Developer” rights, I’ve tried bumping it “Admin” but it still fails. It’s supposed to have rights for publishing all projects

Any idea what could be the problem here?

I created a new branch, re-added the token to github and then all of a sudden it started working. I’m not sure what was causing the problem, this can be closed.