Workflow file for this run
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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: Publish with Bun | |
on: | |
workflow_dispatch: | |
release: | |
types: | |
- created | |
env: | |
NODE_VERSION: lts/* | |
jobs: | |
publish-with-bun: | |
name: Publish with Bun | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: ⤵️ Checkout repository | |
uses: actions/[email protected] | |
- name: Setup Node.js (for Bun) | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Install Bun | |
uses: oven-sh/setup-bun@v1 | |
- name: Install dependencies (Bun) | |
run: bun install --frozen | |
- name: Build Typescript | |
run: bun run build | |
- name: Publish (with Bun) | |
run: bun run publish --yes | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |