-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 936 Bytes
/
Copy pathpublish.yml
File metadata and controls
46 lines (38 loc) · 936 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
42
43
44
45
46
name: Publish Package
on:
workflow_dispatch:
inputs:
tag:
description: 'npm tag (latest or next)'
required: true
type: choice
options:
- latest
- next
repository_dispatch:
types: [publish-package]
permissions:
id-token: write
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: jdx/mise-action@d6e32c1796099e0f1f3ac741c220a8b7eae9e5dd
with:
install: true
cache: true
experimental: true
- name: Build
run: mise run build
- id: inputs
uses: simenandre/setup-inputs@v1
- name: Publish to npm with OIDC
run: |
TAG="${{ steps.inputs.outputs.tag }}"
if [ -z "$TAG" ]; then
TAG="latest"
fi
echo "Publishing with tag: $TAG"
mise run publish --tag "$TAG"