Skip to content

Commit fa0b59b

Browse files
committed
Add manual workflow for updating "latest" on npm
Signed-off-by: Andrew Richardson <[email protected]>
1 parent e0f6339 commit fa0b59b

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/setlatest.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: npm Set Latest
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: 'Version'
8+
required: true
9+
type: string
10+
11+
jobs:
12+
publish:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/setup-node@v3
16+
with:
17+
node-version: '16.x'
18+
registry-url: 'https://registry.npmjs.org'
19+
- run: npm dist-tag add @hyperledger/firefly-sdk@${{ inputs.version }} latest
20+
env:
21+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)