From 87cf86bd528c09ee32d07c53d6cb9709eed6bb60 Mon Sep 17 00:00:00 2001 From: Jacob Hummer Date: Sat, 18 May 2024 17:51:51 -0500 Subject: [PATCH] save --- .github/workflows/npm-publish.yml | 10 +++++++++- README.md | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index ea3a48e..fc82417 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -3,6 +3,13 @@ on: release: types: released workflow_dispatch: + inputs: + tag: + type: + required: true + type: choice + options: [latest, next] + default: latest concurrency: ${{ github.workflow }} jobs: npm-publish: @@ -21,6 +28,7 @@ jobs: registry-url: https://registry.npmjs.org/ - run: npm ci - run: npm run build - - run: npm publish --provenance + - run: npm publish --provenance --tag "$TAG" env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + TAG: ${{ inputs.tag }} diff --git a/README.md b/README.md index f11fad0..d0f6667 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ This can be useful if you need to resolve the path to a specific binary (`cat.ex ## Development ![Node.js](https://img.shields.io/static/v1?style=for-the-badge&message=Node.js&color=339933&logo=Node.js&logoColor=FFFFFF&label=) -![GitHub Actions](https://img.shields.io/static/v1?style=for-the-badge&message=GitHub+Actions&color=2088FF&logo=GitHub+Actions&logoColor=FFFFFF&label=) +![Windows](https://img.shields.io/static/v1?style=for-the-badge&message=Windows&color=0078D4&logo=Windows&logoColor=FFFFFF&label=) 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.