fastify / fastify/workflows

Set up a common workflow to push a package to npm when we issue a release

Open
#112 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
15
Forks
8
Avg merge
15h 57m
Merged PRs (30d)
7

Description

### Prerequisites

- [X] I have written a descriptive issue title
- [X] I have searched existing issues to ensure the feature has not already been requested

### 🚀 Feature Proposal

Why?

To release a new version of any package, we lose a somewhat significant amount of time (checking out locally, syncing, etc.)

An example of how simple things can be: https://github.com/gurgunday/html/blob/e60791ff5f557c9eb51c75f8f80008e74bfa3ced/.github/workflows/npm-publish.yml

And the action runs automatically after a release is issued:
https://github.com/gurgunday/html/releases/tag/v7.0.0
https://github.com/gurgunday/html/actions/runs/6941110154

We just need to create an automation token on NPM and add it to GitHub

Another benefit: it also **[signs the commit](https://docs.npmjs.com/generating-provenance-statements)** during the workflow, so if we have any paranoid users, they can verify that the release matches to what they see on GitHub

What do you all think?

### Motivation

_No response_

### Example

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.