Skip to content

New and improved Tinytime! #1

New and improved Tinytime!

New and improved Tinytime! #1

Workflow file for this run

name: Publish Package to npm
# Trigger this workflow whenever a new release is published
on:
push:
tags:
- 'v*'
# Grant write permissions to the repository contents so we can push version updates
permissions:
contents: write
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- name: Setup Bun
- uses: oven-sh/setup-bun@v2
with:
bun-version-file: ".bun-version"
- name: Install dependencies
run: bun i
- name: Run tests
run: bun test
- name: Publish to NPM
run: bun publish --access public
env:
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish to JSR
run: bunx jsr publish