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

Add release CI workflow to build and release universal binary #55

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

Conversation

s1hofmann
Copy link

@s1hofmann s1hofmann commented Nov 14, 2022

This PR introduces a dedicated CI workflow for tagged releases.

Not only does it automate releases, it also enables publishing a universal binary which natively runs on both Intel and Apple Silicon machines, not need for Rosetta2.

It achieves this by first building two separate binaries for x64 and arm64 that are later combined into a single fat binary that supports both architectures.

Requirements:

In order to publish new releases, this CI workflow requires a repository secret called NPM_TOKEN which stores an npm automation access token.

How to use:

A new release will be published by pushing a new tag:

git tag -a v2.2.2 -m "Release v2.2.2"
git push --tags

Please note that this workflow will only run on tags that follow the form v*.*.*, e.g. v2.2.2

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

Successfully merging this pull request may close these issues.

1 participant