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

Cannot include asset created during workflow #430

Open
ajmacdonald opened this issue Oct 27, 2021 · 2 comments
Open

Cannot include asset created during workflow #430

ajmacdonald opened this issue Oct 27, 2021 · 2 comments

Comments

@ajmacdonald
Copy link

Hello,

I'm using GitHub Actions to build and release my JS project on npm and GitHub.
During the process I'm generating a transpiled version for distribution.

I'm trying to include this distribution file in the assets for the GitHub release but I can't figure out how to get it working. Only the source code gets included in the release: https://github.com/voyanttools/voyantjs/releases/tag/v2.1.7

I know the distribution file exists because it's included in the tarball that's sent to npm.

Here's the semantic release configuration from my package.json file

"release": {
    "plugins": [
      "@semantic-release/commit-analyzer",
      "@semantic-release/release-notes-generator",
      "@semantic-release/changelog",
      "@semantic-release/npm",
      [
        "@semantic-release/git",
        {
          "assets": [
            "dist/voyantjs.js"
          ]
        }
      ],
      [
        "@semantic-release/github",
        {
          "assets": [
            {
              "path": "dist/voyantjs.js",
              "label": "JS distribution"
            }
          ]
        }
      ]
    ]
  }

I'm not sure if it's necessary to specify assets in both the git and github plugins. I'm using the git plugin simply to update the version in my package.json file.

I'd really appreciate any assistance in getting this working. Thanks in advance!

@nelsonfleig
Copy link

Same issue here. Were you able to fix it?

@ajmacdonald
Copy link
Author

Unfortunately no.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants