Repository navigation
Publish on open #549
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish (Develop) | ||
| on: | ||
| # push: | ||
| # branches: | ||
| # - "develop" | ||
| on: | ||
| pull_request: | ||
| types: [opened] | ||
| permissions: | ||
| contents: read | ||
| jobs: | ||
| build: | ||
| # if: "contains(github.event.head_commit.message, 'release:')" | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-node@v6.3.0 | ||
| with: | ||
| node-version: 16 | ||
| registry-url: https://registry.npmjs.org/ | ||
| - name: Install & Build | ||
| run: yarn setup | ||
| - name: Publish to NPM | ||
| run: | | ||
| cd packages | ||
| cd crypto && npm publish --access public --tag rc && cd .. | ||
| cd core-api && npm publish --access public --tag rc && cd .. | ||
| cd core-blockchain && npm publish --access public --tag rc && cd .. | ||
| cd core-cli && npm publish --access public --tag rc && cd .. | ||
| cd core-database && npm publish --access public --tag rc && cd .. | ||
| cd core-forger && npm publish --access public --tag rc && cd .. | ||
| cd core-kernel && npm publish --access public --tag rc && cd .. | ||
| cd core-logger-pino && npm publish --access public --tag rc && cd .. | ||
| cd core-magistrate-api && npm publish --access public --tag rc && cd .. | ||
| cd core-magistrate-crypto && npm publish --access public --tag rc && cd .. | ||
| cd core-magistrate-transactions && npm publish --access public --tag rc && cd .. | ||
| cd core-manager && npm publish --access public --tag rc && cd .. | ||
| cd core-p2p && npm publish --access public --tag rc && cd .. | ||
| cd core-snapshots && npm publish --access public --tag rc && cd .. | ||
| cd core-state && npm publish --access public --tag rc && cd .. | ||
| cd core-test-framework && npm publish --access public --tag rc && cd .. | ||
| cd core-transaction-pool && npm publish --access public --tag rc && cd .. | ||
| cd core-transactions && npm publish --access public --tag rc && cd .. | ||
| cd core-webhooks && npm publish --access public --tag rc && cd .. | ||
| cd core && npm publish --access public --tag rc && cd .. | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||