Skip to content

Publish to NPM

Publish to NPM #6

Workflow file for this run

name: Publish to NPM
on:
release:
types: [published]
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Setup Bun"
uses: oven-sh/setup-bun@0f37bd81694f91f7edc1c990461a7fc67ef7e3d8
with:
bun-version: 1.0.x
scope: "@smart-discord"
- name: "Registry Auth"
run: |
npm config set @smart-discord:registry https://registry.npmjs.org
npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
- name: "Install Dependencies"
run: bun install --frozen-lockfile
- name: "Build"
run: bun run build
- name: "Publish"
run: npm publish --access public