Skip to content

v0.0.24

v0.0.24 #6

Workflow file for this run

name: NPM Publish
on:
release:
types: [created]
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- name: Install Bun
run: |
curl -fsSL https://bun.sh/install | bash
export PATH="$HOME/.bun/bin:$PATH"
- name: Build & Set Package Version to Tag
run: |
export PATH="$HOME/.bun/bin:$PATH"
bun install --frozen-lockfile
bun run build
VERSION=${GITHUB_REF#refs/tags/}
npm version $VERSION --no-git-tag-version
- name: Publish
run: |
export PATH="$HOME/.bun/bin:$PATH"
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}