Skip to content

Commit 0e99ff6

Browse files
committed
New and improved Tinytime!
1 parent 656cfc0 commit 0e99ff6

40 files changed

+767
-4120
lines changed

.babelrc

Lines changed: 0 additions & 18 deletions
This file was deleted.

.bun-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.2.5

.flowconfig

Lines changed: 0 additions & 8 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Publish Package to npm
2+
3+
# Trigger this workflow whenever a new release is published
4+
on:
5+
push:
6+
tags:
7+
- 'v*'
8+
9+
# Grant write permissions to the repository contents so we can push version updates
10+
permissions:
11+
contents: write
12+
13+
jobs:
14+
publish:
15+
runs-on: ubuntu-latest
16+
17+
permissions:
18+
contents: read
19+
id-token: write
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- name: Setup Bun
25+
- uses: oven-sh/setup-bun@v2
26+
with:
27+
bun-version-file: ".bun-version"
28+
29+
- name: Install dependencies
30+
run: bun i
31+
32+
- name: Run tests
33+
run: bun test
34+
35+
- name: Publish to NPM
36+
run: bun publish --access public
37+
env:
38+
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
39+
40+
- name: Publish to JSR
41+
run: bunx jsr publish

.github/workflows/publish.yml~

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Publish Package to npm
2+
3+
# Trigger this workflow whenever a new release is published
4+
on:
5+
release:
6+
types: [published]
7+
8+
# Grant write permissions to the repository contents so we can push version updates
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
publish:
14+
runs-on: ubuntu-latest
15+
16+
permissions:
17+
contents: read
18+
id-token: write
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- name: Setup Bun
24+
- uses: oven-sh/setup-bun@v2
25+
with:
26+
bun-version-file: ".bun-version"
27+
28+
- name: Install dependencies
29+
run: bun i
30+
31+
- name: Run tests
32+
run: bun test
33+
34+
- name: Publish to NPM
35+
run: bun publish --access public
36+
env:
37+
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
38+
39+
- name: Publish to JSR
40+
run: bunx jsr publish

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
node_modules
22
dist
3-
.DS_Store

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/biome.xml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/discord.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/encodings.xml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)