Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Job step failure but succeeding enough that it's working functionally #936

Copy link
Copy link
Closed
@danielloader

Description

@danielloader
Issue body actions

Bit of a pickle here because I can't work it out given the information I have available to me in the log.

The step is running and completing enough that functionally I can't see what it's missing or should be doing:

  • Release gets created
  • Tag gets created and pushed
  • PR that got merged is labelled as released and the comment is added to say which release it's been deployed in.

So given that, I'm not sure what is failing, or why.

Having not got past this stage I'm not sure which step would be next to know what is failing.

Any help would be appreciated

Run npx -p semantic-release@24.1.2 -p @semantic-release/changelog@6.0.3 -p @semantic-release/exec@6.0.3 -p @semantic-release/git@10.0.1 -p conventional-changelog-conventionalcommits@8.0.0 -p semantic-release-replace-plugin@1.2.7 semantic-release
  npx -p semantic-release@24.1.2 -p @semantic-release/changelog@6.0.3 -p @semantic-release/exec@6.0.3 -p @semantic-release/git@10.0.1 -p conventional-changelog-conventionalcommits@8.0.0 -p semantic-release-replace-plugin@1.2.7 semantic-release
  shell: /usr/bin/bash -e {0}
  env:
    GITHUB_TOKEN: ***
npm warn exec The following packages were not found and will be installed: conventional-changelog-conventionalcommits@8.0.0, @semantic-release/changelog@6.0.3, @semantic-release/git@10.0.1, semantic-release@24.1.2, @semantic-release/exec@6.0.3, semantic-release-replace-plugin@1.2.7
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported
[10:35:33 AM] [semantic-release] › ℹ  Running semantic-release version 24.1.2
[10:35:34 AM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/npm"
[10:35:34 AM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/github"
[10:35:34 AM] [semantic-release] › ✔  Loaded plugin "analyzeCommits" from "@semantic-release/commit-analyzer"
[10:35:34 AM] [semantic-release] › ✔  Loaded plugin "generateNotes" from "@semantic-release/release-notes-generator"
[10:35:34 AM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/npm"
[10:35:34 AM] [semantic-release] › ✔  Loaded plugin "publish" from "@semantic-release/npm"
[10:35:34 AM] [semantic-release] › ✔  Loaded plugin "publish" from "@semantic-release/github"
[10:35:34 AM] [semantic-release] › ✔  Loaded plugin "addChannel" from "@semantic-release/npm"
[10:35:34 AM] [semantic-release] › ✔  Loaded plugin "addChannel" from "@semantic-release/github"
[10:35:34 AM] [semantic-release] › ✔  Loaded plugin "success" from "@semantic-release/github"
[10:35:34 AM] [semantic-release] › ✔  Loaded plugin "fail" from "@semantic-release/github"
[10:35:40 AM] [semantic-release] › ✔  Run automated release from branch main on repository https://github.com/REDACTED/frontend
[10:35:40 AM] [semantic-release] › ✔  Allowed to push to the Git repository
[10:35:40 AM] [semantic-release] › ℹ  Start step "verifyConditions" of plugin "@semantic-release/npm"
[10:35:40 AM] [semantic-release] › ✔  Completed step "verifyConditions" of plugin "@semantic-release/npm"
[10:35:40 AM] [semantic-release] › ℹ  Start step "verifyConditions" of plugin "@semantic-release/github"
[10:35:40 AM] [semantic-release] [@semantic-release/github] › ℹ  Verify GitHub authentication (https://api.github.com)
[10:35:40 AM] [semantic-release] › ✔  Completed step "verifyConditions" of plugin "@semantic-release/github"
[10:35:40 AM] [semantic-release] › ℹ  Found git tag v1.162.8 associated with version 1.162.8 on branch main
[10:35:40 AM] [semantic-release] › ℹ  Found 1 commits since last release
[10:35:40 AM] [semantic-release] › ℹ  Start step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
[10:35:40 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analyzing commit: fix: update risk code `onChange` to populate share value (#108)
[10:35:40 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  The release type for the commit is patch
[10:35:40 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analysis of 1 commits complete: patch release
[10:35:40 AM] [semantic-release] › ✔  Completed step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
[10:35:40 AM] [semantic-release] › ℹ  The next release version is 1.162.9
[10:35:40 AM] [semantic-release] › ℹ  Start step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[10:35:40 AM] [semantic-release] › ✔  Completed step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[10:35:40 AM] [semantic-release] › ℹ  Start step "prepare" of plugin "@semantic-release/npm"
[10:35:40 AM] [semantic-release] [@semantic-release/npm] › ℹ  Write version 1.162.9 to package.json in /home/runner/work/frontend/frontend
v1.162.9
[10:35:41 AM] [semantic-release] › ✔  Completed step "prepare" of plugin "@semantic-release/npm"
[10:35:42 AM] [semantic-release] › ✔  Created tag v1.162.9
[10:35:42 AM] [semantic-release] › ℹ  Start step "publish" of plugin "@semantic-release/npm"
[10:35:42 AM] [semantic-release] [@semantic-release/npm] › ℹ  Skip publishing to npm registry as package.json's private property is true
[10:35:42 AM] [semantic-release] › ✔  Completed step "publish" of plugin "@semantic-release/npm"
[10:35:42 AM] [semantic-release] › ℹ  Start step "publish" of plugin "@semantic-release/github"
[10:35:42 AM] [semantic-release] [@semantic-release/github] › ℹ  Published GitHub release: https://github.com/REDACTED/frontend/releases/tag/v1.162.9
[10:35:42 AM] [semantic-release] › ✔  Completed step "publish" of plugin "@semantic-release/github"
[10:35:42 AM] [semantic-release] › ℹ  Start step "success" of plugin "@semantic-release/github"
[10:35:45 AM] [semantic-release] [@semantic-release/github] › ℹ  Added comment to PR #108: https://github.com/REDACTED/frontend/pull/108#issuecomment-2388322784
[10:35:46 AM] [semantic-release] [@semantic-release/github] › ℹ  Added labels [ 'released' ] to PR #108
[10:35:46 AM] [semantic-release] › ✘  Failed step "success" of plugin "@semantic-release/github"
[10:35:46 AM] [semantic-release] › ✘  An error occurred while running semantic-release: Error: Resource not accessible by integration
    at file:///home/runner/.npm/_npx/c45523f0078986ba/node_modules/semantic-release/node_modules/aggregate-error/index.js:23:26
    at Array.map (<anonymous>)
    at new AggregateError (file:///home/runner/.npm/_npx/c45523f0078986ba/node_modules/semantic-release/node_modules/aggregate-error/index.js:16:19)
    at file:///home/runner/.npm/_npx/c45523f0078986ba/node_modules/semantic-release/lib/plugins/pipeline.js:55:13
    at async pluginsConfigAccumulator.<computed> [as success] (file:///home/runner/.npm/_npx/c45523f0078986ba/node_modules/semantic-release/lib/plugins/index.js:87:11)
    at async run (file:///home/runner/.npm/_npx/c45523f0078986ba/node_modules/semantic-release/index.js:218:3)
    at async Module.default (file:///home/runner/.npm/_npx/c45523f0078986ba/node_modules/semantic-release/index.js:278:22)
    at async default (file:///home/runner/.npm/_npx/c45523f0078986ba/node_modules/semantic-release/cli.js:55:5) {
  type: 'FORBIDDEN',
  path: [ 'repository', 'issues' ],
  extensions: { saml_failure: false },
  locations: [ { line: 4, column: 7 } ],
  pluginName: '@semantic-release/github'
}
AggregateError: 
    Error: Resource not accessible by integration
        at Array.map (<anonymous>)
        at file:///home/runner/.npm/_npx/c45523f0078986ba/node_modules/semantic-release/lib/plugins/pipeline.js:55:13
        at async pluginsConfigAccumulator.<computed> [as success] (file:///home/runner/.npm/_npx/c45523f0078986ba/node_modules/semantic-release/lib/plugins/index.js:87:11)
        at async run (file:///home/runner/.npm/_npx/c45523f0078986ba/node_modules/semantic-release/index.js:218:3)
        at async Module.default (file:///home/runner/.npm/_npx/c45523f0078986ba/node_modules/semantic-release/index.js:278:22)
        at async default (file:///home/runner/.npm/_npx/c45523f0078986ba/node_modules/semantic-release/cli.js:55:5)
    at file:///home/runner/.npm/_npx/c45523f0078986ba/node_modules/semantic-release/lib/plugins/pipeline.js:55:13
    at async pluginsConfigAccumulator.<computed> [as success] (file:///home/runner/.npm/_npx/c45523f0078986ba/node_modules/semantic-release/lib/plugins/index.js:87:11)
    at async run (file:///home/runner/.npm/_npx/c45523f0078986ba/node_modules/semantic-release/index.js:218:3)
    at async Module.default (file:///home/runner/.npm/_npx/c45523f0078986ba/node_modules/semantic-release/index.js:278:22)
    at async default (file:///home/runner/.npm/_npx/c45523f0078986ba/node_modules/semantic-release/cli.js:55:5) {
  errors: [
    Error: Resource not accessible by integration
        at file:///home/runner/.npm/_npx/c45523f0078986ba/node_modules/semantic-release/node_modules/aggregate-error/index.js:23:26
        at Array.map (<anonymous>)
        at new AggregateError (file:///home/runner/.npm/_npx/c45523f0078986ba/node_modules/semantic-release/node_modules/aggregate-error/index.js:16:19)
        at file:///home/runner/.npm/_npx/c45523f0078986ba/node_modules/semantic-release/lib/plugins/pipeline.js:55:13
        at async pluginsConfigAccumulator.<computed> [as success] (file:///home/runner/.npm/_npx/c45523f0078986ba/node_modules/semantic-release/lib/plugins/index.js:87:11)
        at async run (file:///home/runner/.npm/_npx/c45523f0078986ba/node_modules/semantic-release/index.js:218:3)
        at async Module.default (file:///home/runner/.npm/_npx/c45523f0078986ba/node_modules/semantic-release/index.js:278:22)
        at async default (file:///home/runner/.npm/_npx/c45523f0078986ba/node_modules/semantic-release/cli.js:55:5) {
      type: 'FORBIDDEN',
      path: [Array],
      extensions: [Object],
      locations: [Array],
      pluginName: '@semantic-release/github'
    }
  ]
}
Error: Process completed with exit code 1.

Here's the workflow file:

on:
  workflow_call:

name: Release
jobs:
  release:
    name: Release
    runs-on: ubuntu-latest
    steps:
      - uses: actions/create-github-app-token@v1
        id: app-token
        with:
          app-id: ${{ vars.PRIVATE_PACKAGE_ACCESS_APP_ID }}
          private-key: ${{ secrets.PRIVATE_PACKAGE_ACCESS_PRIVATE_KEY }}
          owner: ${{ github.repository_owner }}
      - uses: actions/checkout@v4
        with:
          token: ${{ steps.app-token.outputs.token }}
          fetch-depth: 0
      - name: Setup Node.js
        uses: actions/setup-node@v4
        with:
          node-version: "lts/*"
          cache: 'npm'
          cache-dependency-path: '**/.github/workflows/release.yaml'
      - name: Release
        env:
          GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
        run: >
          npx
          -p semantic-release@24.1.2
          -p @semantic-release/changelog@6.0.3
          -p @semantic-release/exec@6.0.3
          -p @semantic-release/git@10.0.1
          -p conventional-changelog-conventionalcommits@8.0.0
          -p semantic-release-replace-plugin@1.2.7
          semantic-release

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.