chore: adding spans (#25) #25
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: | |
branches: | |
- main | |
jobs: | |
publish: | |
name: 🛩️ Publish | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: 🛑 Cancel Previous Runs | |
uses: styfle/[email protected] | |
- name: ⬇️ Checkout repo | |
uses: actions/checkout@v4 | |
- name: 📦 Setup bun | |
uses: oven-sh/setup-bun@v1 | |
- name: ⎔ Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.node-version' | |
registry-url: 'https://registry.npmjs.org' | |
# cache: 'bun' | |
cache-dependency-path: ./package.json | |
- name: 📥 Install deps | |
run: bun install --frozen-lockfile | |
- name: ✏️ Bump package version | |
id: bumping-version | |
uses: jpb06/[email protected] | |
with: | |
major-keywords: BREAKING CHANGE | |
minor-keywords: feat,minor | |
patch-keywords: fix,chore | |
should-default-to-patch: true | |
commit-user: jpb06 | |
commit-user-email: [email protected] | |
- name: ⚙️ Building package | |
run: bun run build | |
- name: 🚀 Publish package | |
if: steps.bumping-version.outputs.bump-performed == 'true' | |
run: npm publish ./dist --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |