Skip to content

How to execute 'npm script' within github action and use the script output as a package source #16

@kuncevic

Description

@kuncevic

I have a library that I build with Angular CLI here https://github.com/kuncevic/rx-service
In order to release a new version of the library manually I had to to this steps:

  1. ng build --prod
  2. cd dist/library-name
  3. npm publish

It just can be looks like a single npm script "publish": "ng build --prod && cd dist/library-name && npm publish"

I want to release that library using github actions so the steps above needs to be executed within an action, by looking in to npm-publish-action but didn't found a way to achieve that.

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions