Skip to content

docs: credit the original provider and add npm/CI/license badges #3

docs: credit the original provider and add npm/CI/license badges

docs: credit the original provider and add npm/CI/license badges #3

Workflow file for this run

name: Release
on:
push:
branches: [main]
permissions:
contents: write
issues: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
registry-url: https://registry.npmjs.org
- uses: oven-sh/setup-bun@v2
with:
bun-version: "1.3.14"
- name: Install dependencies
run: bun install
- name: Unit tests
run: bun test tests/unit/
- name: Publish if unpublished
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# workit lesson: setup-node writes NODE_AUTH_TOKEN into .npmrc.
# NPM_TOKEN alone is an empty placeholder there.
NPM_TOKEN: ${{ secrets.NPMJS }}
NODE_AUTH_TOKEN: ${{ secrets.NPMJS }}
run: bun run scripts/publish-if-needed.ts