Skip to content

Commit 87cf86b

Browse files
committed
save
1 parent df56eaf commit 87cf86b

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/npm-publish.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ on:
33
release:
44
types: released
55
workflow_dispatch:
6+
inputs:
7+
tag:
8+
type:
9+
required: true
10+
type: choice
11+
options: [latest, next]
12+
default: latest
613
concurrency: ${{ github.workflow }}
714
jobs:
815
npm-publish:
@@ -21,6 +28,7 @@ jobs:
2128
registry-url: https://registry.npmjs.org/
2229
- run: npm ci
2330
- run: npm run build
24-
- run: npm publish --provenance
31+
- run: npm publish --provenance --tag "$TAG"
2532
env:
2633
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
34+
TAG: ${{ inputs.tag }}

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ This can be useful if you need to resolve the path to a specific binary (`cat.ex
8686
## Development
8787

8888
![Node.js](https://img.shields.io/static/v1?style=for-the-badge&message=Node.js&color=339933&logo=Node.js&logoColor=FFFFFF&label=)
89-
![GitHub Actions](https://img.shields.io/static/v1?style=for-the-badge&message=GitHub+Actions&color=2088FF&logo=GitHub+Actions&logoColor=FFFFFF&label=)
89+
![Windows](https://img.shields.io/static/v1?style=for-the-badge&message=Windows&color=0078D4&logo=Windows&logoColor=FFFFFF&label=)
9090

9191
You'll need a Windows computer to test this package locally. You can run `npm run build` to make sure everything looks good locally. `npm run generate` redownloads the configured version of Git for Windows PortableGit as a 7zip self-extracting archive.
9292

0 commit comments

Comments
 (0)