Publish Package #22
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 Package | |
on: workflow_dispatch | |
jobs: | |
check: | |
name: Check package | |
uses: ./.github/workflows/check.yml | |
publish: | |
name: Publish | |
needs: check | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: write | |
pull-requests: write | |
issues: write | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@9a9194f87191a7e9055e3e9b95b8cfb13023bb08 | |
- name: Setup Node.js | |
uses: actions/setup-node@26961cf329f22f6837d5f54c3efd76b480300ace | |
with: | |
node-version: lts/* | |
- name: Setup Bun | |
uses: oven-sh/setup-bun@b9d34de66d2a7faee36a22446c434b7c959e48d2 | |
- name: Install dependencies | |
run: bun install --frozen-lockfile | |
- name: Build package | |
run: bun run build | |
- name: Publish package | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: bunx --bun semantic-release |