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

ci: auto-update script detection and workflow release #24

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

GreatWizard
Copy link
Contributor

Let's automate all the boring stuff :)
The package is fairly simple to be automated from unicode.org new release detection to publish on npm.

I create a new script (gen.sh) in order to detect the new releases automatically from unicode.org and update the package.json version and emoji JSON files.

Then, I add 2 GitHub actions workflows:

  • update-emoji.yml: scheduled every night, it runs the build process and make a Pull Request (auto mergeable)
  • tag-release-publish.yml: detect the package.json version change and create a tag on Github, then create the release page and push the new package on NPM

In order to works, we need to set up 3 secrets:

  • npm_automation_token: token to auto-publish on NPM
  • github_write_token: GitHub token with write access on the repo
  • github_repo_token: GitHub token with repo access on the repo

create_git_tag:
name: Create new `git tag`
runs-on: ubuntu-latest
timeout-minutes: 20
Copy link
Owner

Choose a reason for hiding this comment

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

I guess 2 mins should be enough?

@amio
Copy link
Owner

amio commented Jan 13, 2023

Great idea!
Sorry for missing PRs for a long time, would you mind continue work on this? @GreatWizard
We can use this to release the update for v15.0

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