Skip to content

Instantly share code, notes, and snippets.

@allenhwkim
Last active May 18, 2022 20:43
Show Gist options
  • Save allenhwkim/7956fb96636267a1aaf0fa15f17c8472 to your computer and use it in GitHub Desktop.
Save allenhwkim/7956fb96636267a1aaf0fa15f17c8472 to your computer and use it in GitHub Desktop.
semantic-release auto publish
name: Release
"on":
push:
branches:
- main
jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: npm
node-version: 16
- run: npm ci
- run: npx semantic-release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment