Last active
May 18, 2022 20:43
-
-
Save allenhwkim/7956fb96636267a1aaf0fa15f17c8472 to your computer and use it in GitHub Desktop.
semantic-release auto publish
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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