Skip to content

Add publish workflow #2

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

alexvcasillas
Copy link

This pull request introduces a new GitHub Actions workflow to automate the publishing process for the project. The workflow is triggered on pushes to the main and develop branches, as well as manually for other branches. It includes steps for setting up the environment, installing dependencies, creating release pull requests or publishing stable versions, and sending notifications on success or failure.

Key changes include:

  • Workflow configuration:

    • Added a new workflow named Publish that triggers on pushes to main and develop branches and can be manually triggered for other branches.
    • Set permissions for id-token, contents, and pull-requests to write.
    • Configured concurrency to cancel in-progress runs for the same workflow and branch.
  • Job definition:

    • Defined a release job that runs on ubuntu-latest with a matrix strategy for Node.js version 20.
    • Included steps for checking out the repository, setting up Node.js, loading cached dependencies, and installing dependencies.
  • Release and notification steps:

    • Added steps to create release pull requests or publish stable versions to npm, and to send notifications to Slack on success or failure.

@alexvcasillas alexvcasillas added the enhancement New feature or request label Apr 14, 2025
@alexvcasillas alexvcasillas requested a review from bdbch April 14, 2025 14:57
@alexvcasillas alexvcasillas self-assigned this Apr 14, 2025
Copy link
Contributor

@arnaugomez arnaugomez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this repository uses pnpm, but this workflow uses npm. Will the workflow work?

I was working on this one myself, have a look at it.
publish.yml.zip

@alexvcasillas
Copy link
Author

I believe this repository uses pnpm, but this workflow uses npm. Will the workflow work?

I was working on this one myself, have a look at it. publish.yml.zip

It should matter much, it's just changing pnpm to npm

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

Successfully merging this pull request may close these issues.

2 participants