Skip to content

Commit 95ed157

Browse files
authored
Merge pull request #83 from kaleido-io/setlatest
Add manual workflow for updating "latest" on npm
2 parents e0f6339 + fa0b59b commit 95ed157

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)