Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,13 @@ jobs:
- name: Remove unsupported deb architectures
run: rm -f dist/deb/*armel*.deb

- name: Remove git SHA from deb filenames
run: |
for f in dist/deb/*.deb; do
newname=$(echo "$f" | sed -E 's|fireblocks_([0-9.]+)\.[0-9a-f]{7}-[0-9]+_|fireblocks-v\1-|')
[ "$f" != "$newname" ] && mv "$f" "$newname"
done

- name: Upload deb installer
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -281,6 +288,39 @@ jobs:
- name: Publish package
run: npx --yes npm@^11 publish --access public
# No NODE_AUTH_TOKEN needed - OIDC handles authentication

publish-to-private-registry:
needs: publish
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
ref: master
fetch-depth: 0

# First setup-node: for installing dependencies from npmjs.org
- name: Set up Node for dependency installation
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: npm install

# Second setup-node: reconfigure for publishing to private registry
- name: Set up Node for private registry publishing
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: ${{ secrets.PRIVATE_NPM_REGISTRY_URL }}

- name: Publish package to private registry
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.PRIVATE_NPM_REGISTRY_TOKEN }}
SKIP_POSTVERSION: true


upload-release-assets:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: tests
on:
push:
branches-ignore: [main]
pull_request:
branches: ['**']
workflow_dispatch:

jobs:
Expand Down
113 changes: 0 additions & 113 deletions CHANGELOG.md

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,4 +212,4 @@ Issues and PRs welcome at [github.com/fireblocks/fireblocks-cli](https://github.

## License

[MIT](LICENSE)
[MIT](LICENSE)
Loading
Loading