Skip to content

Commit 1ad0d49

Browse files
Add tag option to CI
1 parent 371f2fb commit 1ad0d49

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/ci.yml

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: ci
22

33
on:
4+
workflow_dispatch:
5+
inputs:
6+
tag:
7+
description: override release tag
8+
required: false
49
push:
510
branches: ['main', 'alpha', 'beta', 'rc']
611

@@ -33,9 +38,11 @@ jobs:
3338
run: |
3439
git config --global user.name 'Tanner Linsley'
3540
git config --global user.email '[email protected]'
41+
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
3642
pnpm run cipublish
3743
env:
3844
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
3945
GH_TOKEN: ${{ secrets.GH_TOKEN }}
4046
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4147
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
48+
TAG: ${{ inputs.tag }}

0 commit comments

Comments
 (0)