β¨ allow force stop #16
This file contains 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: publish | |
on: push | |
jobs: | |
test: | |
name: π§ͺ Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: π Checkout | |
uses: actions/checkout@v3 | |
- name: π§ Use Bun | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- name: π Install dependencies | |
run: bun install | |
- name: π§ͺ Unit Tests | |
run: bun test | |
publish: | |
name: π Publish | |
runs-on: ubuntu-latest | |
needs: test | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- name: π Checkout | |
uses: actions/checkout@v3 | |
- name: π Publish to npm | |
uses: JS-DevTools/npm-publish@v2 | |
with: | |
token: ${{ secrets.NPM_TOKEN }} |