Skip to content

v0.16.7

v0.16.7 #121

Workflow file for this run

on:
release:
types:
- created
env:
REGISTRY: ghcr.io
jobs:
deploy:
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
name: Deploy Conduit
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Log in to the Dockerhub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build conduit modules
run: |
make all
publish_sdk:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set env
run: echo "RELEASE_VERSION=$(echo ${GITHUB_REF#refs/*/} | sed 's/^v//')" >> $GITHUB_ENV
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.17.3'
- name: install dependencies
run: yarn install --pure-lockfile --non-interactive
- name: actually_publish
run: yarn publish --access public --new-version ${{ env.RELEASE_VERSION }}
working-directory: ./libraries/grpc-sdk
env:
NODE_AUTH_TOKEN: "${{ secrets.NPM_PUBLISH_TOKEN }}"
publish_module_tools:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set env
run: echo "RELEASE_VERSION=$(echo ${GITHUB_REF#refs/*/} | sed 's/^v//')" >> $GITHUB_ENV
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.17.3'
- name: install dependencies
run: yarn install --pure-lockfile --non-interactive
- name: build the sdk
run: npx lerna run build --scope=@conduitplatform/grpc-sdk --scope=@conduitplatform/module-tools
- name: actually_publish
run: yarn publish --access public --new-version ${{ env.RELEASE_VERSION }}
working-directory: ./libraries/module-tools
env:
NODE_AUTH_TOKEN: "${{ secrets.NPM_PUBLISH_TOKEN }}"