We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a81fd6a commit 5981055Copy full SHA for 5981055
1 file changed
.github/workflows/npm-publish.yml
@@ -3,6 +3,12 @@ name: Publish to npm
3
on:
4
release:
5
types: [published]
6
+ workflow_dispatch:
7
+ inputs:
8
+ tag:
9
+ description: Release tag to publish
10
+ required: true
11
+ default: v0.3.0
12
13
permissions:
14
contents: read
@@ -17,6 +23,8 @@ jobs:
17
23
steps:
18
24
- name: Checkout repository
19
25
uses: actions/checkout@v6
26
+ with:
27
+ ref: ${{ inputs.tag || github.ref_name }}
20
28
21
29
- name: Set up Deno
22
30
uses: denoland/setup-deno@v2
@@ -32,9 +40,11 @@ jobs:
32
40
33
41
- name: Verify release tag matches deno.json
34
42
shell: bash
43
+ env:
44
+ RELEASE_TAG: ${{ inputs.tag || github.ref_name }}
35
45
run: |
36
46
VERSION="$(node -p "require('./deno.json').version")"
37
- test "${GITHUB_REF_NAME}" = "v${VERSION}"
47
+ test "${RELEASE_TAG}" = "v${VERSION}"
38
48
39
49
- name: Pack release tarball
50
run: deno task pack:release
0 commit comments