Can not push tags to GitHub

I’m running into this error when running semantic-release in GitHub Actions


- name: Semantic Release
          GITHUB_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
          NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
        run: npx semantic-release@beta


module.exports = {
	branches: [
		{ name: 'beta', prerelease: true },
		{ name: 'alpha', prerelease: true },
	plugins: [
				prepareCmd: 'yarn fix:md',
				prepareCmd: 'yarn fix:prettier',
				assets: ['src/version.ts', '', 'package.json'],
					'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',
		// "@qiwi/semantic-release-gh-pages-plugin"

Package Versions

"@semantic-release/changelog": "^3.0.4",
"@semantic-release/commit-analyzer": "^6.3.0",
"@semantic-release/exec": "^3.3.3",
"@semantic-release/git": "^7.1.0-beta.3",
"@semantic-release/github": "^5.4.3",
"@semantic-release/npm": "^5.1.15",
"@semantic-release/release-notes-generator": "^7.3.0",


 ! [remote rejected] HEAD -> master (protected branch hook declined)
error: failed to push some refs to 'https://x-access-token:[secure]'

    at makeError (/__w/core/core/node_modules/execa/index.js:174:9)
    at Promise.all.then.arr (/__w/core/core/node_modules/execa/index.js:278:16)
    at process._tickCallback (internal/process/next_tick.js:68:7)
  code: 1,
  stdout: '',
   'remote: error: GH006: Protected branch update failed for refs/heads/master. \nremote: error: You\'re not authorized to push to this branch. Visit for more information. \nTo\n ! [remote rejected] HEAD -> master (protected branch hook declined)\nerror: failed to push some refs to \'https://x-access-token:[secure]\'\n',
  failed: true,
  signal: null,
   'git push --tags https://x-access-token:[secure] HEAD:master',
  timedOut: false,
  killed: false,
  pluginName: '@semantic-release/git' }

What permissions and setting I need to enable for GitHub personal access token so it can work with release? Currently removing protection to make release pass

Hi hashim,

Please use ‘secrets.GITHUB_TOKEN’ and ‘run: npx semantic-release@15.1.3’ in you workflow file.

I copied your repo and it works on my env, more details please check link: