Skip to content

Instantly share code, notes, and snippets.

@tianhaoz95
Created May 19, 2021 08:15
Show Gist options
  • Save tianhaoz95/11e46d8d6fdb96feb46912474729704c to your computer and use it in GitHub Desktop.
Save tianhaoz95/11e46d8d6fdb96feb46912474729704c to your computer and use it in GitHub Desktop.
name: Publish Package
on:
push:
branches:
- "main"
jobs:
release-to-registries:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/setup-node@v2
with:
node-version: "14"
- uses: actions/[email protected]
with:
ruby-version: "2.6"
- name: run semantic release
run: npm install && npm run release
env:
GITHUB_TOKEN: ${{ secrets.USE_GITHUB_TOKEN }}
GEM_HOST_API_KEY: ${{ secrets.RUBY_GEMS_TOKEN }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment