Skip to content

release: v0.1.6

release: v0.1.6 #6

Workflow file for this run

name: Publish
on:
push:
tags: ['v*']
workflow_dispatch:
inputs:
tag_name:
required: true
type: string
permissions:
id-token: write
contents: read
jobs:
publish-node:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '22'
registry-url: 'https://registry.npmjs.org'
- name: Bump npm to latest
run: npm install -g npm@latest
- uses: oven-sh/setup-bun@v2
- name: Install deps
run: |
bun --version
bun install --frozen-lockfile
- name: Extract version
id: versions
uses: ./.github/actions/extract-version
with:
version: ${{ inputs.tag_name || github.ref_name }}
- name: Set package version
run: npm version "${{ steps.versions.outputs.version }}" --no-git-tag-version --allow-same-version
- name: "Build app"
run: bun run build
- name: "Publish NPM"
run: bash ./scripts/npm-publish/run.sh
env:
NPM_TAG: ${{ steps.versions.outputs.npmTag }}
- name: "Dump npm logs on failure"
if: failure()
run: |
echo "=== NPM Debug Logs ==="
find /home/runner/.npm/_logs -name "*.log" -type f -exec echo "=== {} ===" \; -exec cat {} \;