forked from aweary/tinytime
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (31 loc) · 811 Bytes
/
publish.yml
File metadata and controls
41 lines (31 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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