Skip to content

refactor: esm packages #983

refactor: esm packages

refactor: esm packages #983

Workflow file for this run

name: Publish dev
on:
push:
branches:
- dev
jobs:
publish:
if: true
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: 'Use NodeJS 20'
uses: actions/setup-node@v2
with:
node-version: '20.17.0'
- name: Setup [email protected]
run: yarn global add [email protected] --ignore-engines
- name: Set up Git user
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
- name: Build dependencies
run: |
lerna clean --yes
node etc/bootstrapEnv
yarn install --ignore-engines
yarn build
- name: Setup npm
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
npm whoami
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Version and publish
run: |
lerna version patch --force-git-tag --no-changelog --yes
lerna publish from-git --force-git-tag --yes --no-private --summary-file
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Broadcast published versions on Slack
run: node etc/slack --api=$SLACK_API --actor=$GIT_ACTOR --commit-message=$GIT_LATEST_COMMIT_MESSAGE
env:
GIT_ACTOR: ${{ github.actor }}
SLACK_API: ${{ secrets.SLACK_API }}
GIT_LATEST_COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
package-bump-layer:
name: 'Package bump layer'
runs-on: ubuntu-latest
needs: publish
steps:
- name: Package bump layer
uses: InjectiveLabs/github-package-bump@master
with:
gh_token: ${{ secrets.GH_TOKEN }}
folder_path: layer
repository_url: injectiveLabs/injective-ui
repository_branch: master
package-bump-hub:
name: 'Package bump hub'
runs-on: ubuntu-latest
needs: package-bump-layer
steps:
- name: Package bump Hub
uses: InjectiveLabs/github-package-bump@master
with:
gh_token: ${{ secrets.GH_TOKEN }}
repository_url: injectiveLabs/injective-hub
repository_branch: dev
package-bump-helix:
name: 'Package bump Helix'
runs-on: ubuntu-latest
needs: package-bump-layer
steps:
- name: Package bump Helix
uses: InjectiveLabs/github-package-bump@master
with:
gh_token: ${{ secrets.GH_TOKEN }}
repository_url: injectiveLabs/injective-helix
repository_branch: dev
# package-bump-bridge:
# name: 'Package bump Bridge'
# runs-on: ubuntu-latest
# needs: package-bump-layer
# steps:
# - name: Package bump Bridge
# uses: InjectiveLabs/github-package-bump@master
# with:
# gh_token: ${{ secrets.GH_TOKEN }}
# repository_url: injectiveLabs/injective-bridge
# repository_branch: dev
package-bump-explorer:
name: 'Package bump Explorer'
runs-on: ubuntu-latest
needs: package-bump-layer
steps:
- name: Package bump Explorer
uses: InjectiveLabs/github-package-bump@master
with:
gh_token: ${{ secrets.GH_TOKEN }}
repository_url: injectiveLabs/injective-explorer
repository_branch: dev
package-bump-trading-ui:
name: 'Package bump Trading UI'
runs-on: ubuntu-latest
needs: package-bump-layer
steps:
- name: Package bump Trading UI
uses: InjectiveLabs/github-package-bump@master
with:
gh_token: ${{ secrets.GH_TOKEN }}
repository_url: injectiveLabs/injective-trading-ui
repository_branch: master
package-bump-mito:
name: 'Package bump Mito'
runs-on: ubuntu-latest
needs: package-bump-layer
steps:
- name: Package bump Mito
uses: InjectiveLabs/github-package-bump@master
with:
gh_token: ${{ secrets.GH_TOKEN }}
repository_url: mitoFinance/mito-ui
repository_branch: dev
package-bump-ui-api:
name: 'Package bump UI API'
runs-on: ubuntu-latest
needs: package-bump-layer
steps:
- name: Package bump UI API
uses: InjectiveLabs/github-package-bump@master
with:
gh_token: ${{ secrets.GH_TOKEN }}
repository_url: injectiveLabs/injective-ui-api
repository_branch: staging
package-bump-admin-ui:
name: 'Package bump Admin UI'
runs-on: ubuntu-latest
needs: package-bump-layer
steps:
- name: Package bump Admin UI
uses: InjectiveLabs/github-package-bump@master
with:
gh_token: ${{ secrets.GH_TOKEN }}
repository_url: injectiveLabs/injective-admin-ui
repository_branch: master