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 github actions for deploying @stellar/freighter-api #1708

Merged
merged 2 commits into from
Dec 6, 2024

Conversation

piyalbasu
Copy link
Contributor

Closes #1688

Adding GHA's to deploy freighter-api programmatically from this repo. I'm using a similar methodology to what we use for extension deployments:

  • there's one pipeline for beta and one for production
  • each pipeline will bump the version, build the code, publish, and then send a message to a Slack channel
  • the production pipeline will open a PR that bumps the version number in the repo

run: |
yarn publish --access public --tag beta
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Copy link
Contributor Author

@piyalbasu piyalbasu Dec 6, 2024

Choose a reason for hiding this comment

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

I have an ops ticket to add this secret to our repo: https://github.com/stellar/ops/issues/3399

run: |
cd @stellar/freighter-api
yarn config set version-tag-prefix "@stellar/freighter-api@"
yarn config set version-git-message "@stellar/freighter-api: bumping version to %s"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

yarn version will automatically bump the version, tag, and commit the change. These 2 configs help us customize the tag name and the commit message

Once versioned, we just need to open a PR with the committed changes

@piyalbasu piyalbasu merged commit 5f83817 into release/5.26.0 Dec 6, 2024
3 checks passed
@piyalbasu piyalbasu deleted the feature/freighter-api-cd branch December 6, 2024 22:37
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.

2 participants