-
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 800 Bytes
/
Copy pathnpm-publish.yml
File metadata and controls
33 lines (30 loc) · 800 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
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
name: Publish to NPM
on:
workflow_dispatch:
inputs:
tag:
description: 'Release channel'
required: true
default: 'latest'
type: choice
options:
- latest
- beta
- prev
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24
registry-url: https://registry.npmjs.org/
- name: Install bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install
- run: npm publish --tag ${{ inputs.tag }}