Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2package #10

Draft
wants to merge 27 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
72 changes: 38 additions & 34 deletions .github/workflows/all-nodejs-packages-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ concurrency:
jobs:
build-and-publish-packages:
runs-on: ubuntu-22.04
permissions:
id-token: write
steps:
- name: Print Workflow inputs.GIT_TAG_TO_PUBLISH
run: |
Expand All @@ -47,61 +49,63 @@ jobs:
run: ./tools/ci.sh
env:
DEV_BUILD_DISABLED: false
FULL_BUILD_DISABLED: false
FULL_BUILD_DISABLED: true
JEST_TEST_RUNNER_DISABLED: true
TAPE_TEST_RUNNER_DISABLED: true
YARN_ENABLE_IMMUTABLE_INSTALLS: false

- name: Check npm whoami with --registry set to npmjs
continue-on-error: true
run: npm whoami --registry=https://registry.npmjs.org/

- name: lerna-publish-npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_TEST }}
NPM_CONFIG_PROVENANCE: true
run: |
git config --global user.email "[email protected]"
git config --global user.name "hyperledger-ghci"
npm whoami
yarn lerna publish from-git --yes --loglevel=debug --ignore-scripts

- run: cat /home/runner/work/_temp/.npmrc
# - run: cat /home/runner/work/_temp/.npmrc

# Reset the .npmrc by deleting it. Invoking the setup-node action again below
# will set it up from scratch again but with a different registry configuration
# so that we can publish to both registries instead of having to choose.
- run: rm /home/runner/work/_temp/.npmrc
# # Reset the .npmrc by deleting it. Invoking the setup-node action again below
# # will set it up from scratch again but with a different registry configuration
# # so that we can publish to both registries instead of having to choose.
# - run: rm /home/runner/work/_temp/.npmrc

- uses: actions/[email protected]
with:
always-auth: true
node-version: ${{ env.NODEJS_VERSION }}
registry-url: "https://npm.pkg.github.com/"
scope: "@hyperledger"
# - uses: actions/[email protected]
# with:
# always-auth: true
# node-version: ${{ env.NODEJS_VERSION }}
# registry-url: "https://npm.pkg.github.com/"
# scope: "@hyperledger"

- run: cat /home/runner/work/_temp/.npmrc
# - run: cat /home/runner/work/_temp/.npmrc

# Re-initialize the registries so that the @iroha2 scope gets configured in .npmrc
- run: yarn run init-registries
# # Re-initialize the registries so that the @iroha2 scope gets configured in .npmrc
# - run: yarn run init-registries

- run: cat /home/runner/work/_temp/.npmrc
# - run: cat /home/runner/work/_temp/.npmrc

- name: Check npm whoami with no --registry parameter.
continue-on-error: true
run: npm whoami
# - name: Check npm whoami with no --registry parameter.
# continue-on-error: true
# run: npm whoami

- name: Check npm whoami with --registry set to GHCR
continue-on-error: true
run: npm whoami --registry=https://npm.pkg.github.com/
# - name: Check npm whoami with --registry set to GHCR
# continue-on-error: true
# run: npm whoami --registry=https://npm.pkg.github.com/

- name: Configure git user and email
run: |
git config --global user.email "[email protected]"
git config --global user.name "hyperledger-ghci"
# - name: Configure git user and email
# run: |
# git config --global user.email "[email protected]"
# git config --global user.name "hyperledger-ghci"

# We run the publish script a second time after having reconfigured the registry to be GHCR
# instead of npmjs.org so that we can publish the packages everywhere.
- name: lerna-publish-ghcr
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
yarn lerna publish from-git --yes --loglevel=debug --ignore-scripts
# # We run the publish script a second time after having reconfigured the registry to be GHCR
# # instead of npmjs.org so that we can publish the packages everywhere.
# - name: lerna-publish-ghcr
# env:
# NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# yarn lerna publish from-git --yes --loglevel=debug --ignore-scripts
15 changes: 10 additions & 5 deletions .github/workflows/publish-npm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:

build-and-publish-packages:
runs-on: ubuntu-22.04
permissions:
id-token: write
steps:
- uses: actions/[email protected]
with:
Expand All @@ -28,19 +30,22 @@ jobs:
with:
always-auth: true
node-version: ${{ env.NODEJS_VERSION }}
registry-url: 'https://registry.npmjs.org'
registry-url: 'https://registry.npmjs.org/'
- name: ./tools/ci.sh
run: ./tools/ci.sh
env:
DEV_BUILD_DISABLED: false
FULL_BUILD_DISABLED: false
FULL_BUILD_DISABLED: true
JEST_TEST_RUNNER_DISABLED: true
TAPE_TEST_RUNNER_DISABLED: true
YARN_ENABLE_IMMUTABLE_INSTALLS: false
- name: lerna-publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_TEST }}
NPM_CONFIG_PROVENANCE: true
run: |
git config --global user.email "[email protected]"
git config --global user.name "hyperledger-ghci"
echo "The NPM token is: ${{ secrets.NPM_TOKEN_TEST }}"
git config --global user.email "adrianbatuto"
git config --global user.name "adrianbatuto"
npm whoami
yarn lerna publish from-git --yes --loglevel=debug
136 changes: 0 additions & 136 deletions examples/cactus-common-example-server/CHANGELOG.md

This file was deleted.

20 changes: 0 additions & 20 deletions examples/cactus-common-example-server/Dockerfile

This file was deleted.

16 changes: 0 additions & 16 deletions examples/cactus-common-example-server/README.md

This file was deleted.

This file was deleted.

28 changes: 0 additions & 28 deletions examples/cactus-common-example-server/config/default.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions examples/cactus-common-example-server/config/usersetting.yaml

This file was deleted.

This file was deleted.

Loading
Loading