Repository navigation
fix: show friendly error when Docker is not running on genlayer up
#149
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: Release & Publish Package to NPM | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| - staging | |
| paths-ignore: | |
| - 'docs/**' | |
| permissions: | |
| contents: write | |
| id-token: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| environment: npm | |
| steps: | |
| - name: Get CI Bot Token | |
| uses: tibdex/github-app-token@v2 | |
| id: ci_bot_token | |
| with: | |
| app_id: ${{ secrets.CI_BOT_APP_ID }} | |
| private_key: ${{ secrets.CI_BOT_SECRET }} | |
| - name: Checkout source code | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ steps.ci_bot_token.outputs.token }} | |
| - name: Initialize Git User | |
| run: | | |
| git config --global user.email "github-actions[bot]@genlayer.com" | |
| git config --global user.name "github-actions[bot]" | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| registry-url: "https://registry.npmjs.org" | |
| - run: npm install -g npm@latest | |
| - run: npm ci | |
| - name: Release | |
| run: | | |
| if [ "${{ github.ref_name }}" = "staging" ]; then | |
| npm run release-beta | |
| else | |
| npm run release | |
| fi | |
| env: | |
| GITHUB_TOKEN: ${{ steps.ci_bot_token.outputs.token }} |