Skip to content

Commit

Permalink
chore: manually publish NPM
Browse files Browse the repository at this point in the history
Signed-off-by: Ry Jones <ry@linux.com>
  • Loading branch information
ryjones committed Dec 13, 2022
1 parent 795ee6b commit 53f9a7b
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/all-nodejs-packages-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@ jobs:
run: |
git config --global user.email "npm-ci@hyperledger.org"
git config --global user.name "hyperledger-ghci"
npm whoami
yarn lerna publish from-git --yes --loglevel=debug
39 changes: 39 additions & 0 deletions .github/workflows/publish-npm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: publish-npm-manually

on:
workflow_dispatch:
inputs:
tag-pub:
type: string
description: Tag to publish
required: true

jobs:

build-and-publish-packages:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3.1.0
with:
ref: ${{ inputs.tag-pub }}
- run: git fetch --unshallow --prune
- uses: actions/setup-node@v2.1.2
with:
always-auth: true
node-version: '16.14.2'
registry-url: 'https://registry.npmjs.org'
- name: ./tools/ci.sh
run: ./tools/ci.sh
env:
DEV_BUILD_DISABLED: false
FULL_BUILD_DISABLED: false
JEST_TEST_RUNNER_DISABLED: true
TAPE_TEST_RUNNER_DISABLED: true
- name: lerna-publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
git config --global user.email "npm-ci@hyperledger.org"
git config --global user.name "hyperledger-ghci"
npm whoami
yarn lerna publish from-git --yes --loglevel=debug

0 comments on commit 53f9a7b

Please sign in to comment.