fix(build): fix exporting package #24
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: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node-version: [22.x] | |
os: [ubuntu-latest] | |
steps: | |
- name: Checkout code π | |
uses: actions/checkout@v4 | |
- name: Set up Node π’ | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "npm" | |
- name: Install packages βοΈ | |
run: npm ci | |
- name: Build ποΈ | |
run: npm run build | |
- name: Publish package π | |
run: npx semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |