v0.13.5 #794
Workflow file for this run
This file contains 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 | |
on: | |
release: | |
types: [created] | |
jobs: | |
publish-packages: | |
name: Publish packages | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
env: | |
FORCE_COLOR: true | |
HUSKY_SKIP_INSTALL: 1 | |
HUSKY_SKIP_HOOKS: 1 | |
HUSKY: 0 | |
steps: | |
- name: Check out | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
registry-url: https://registry.npmjs.org | |
- name: Extract tag version | |
id: extract-tag-version | |
env: | |
RELEASE_TAG_NAME: ${{ github.event.release.tag_name }} | |
run: | | |
echo "GITHUB_REF is ${GITHUB_REF}" | |
echo "RELEASE_TAG_NAME is ${RELEASE_TAG_NAME}" | |
TAG="${GITHUB_REF:10}" | |
if [ -z "$TAG" ]; then | |
TAG="${RELEASE_TAG_NAME}" | |
fi | |
TAG_VERSION="${TAG//v/}" | |
echo "TAG_VERSION=$TAG_VERSION" >> $GITHUB_ENV | |
- name: Install dependencies | |
run: npm ci --prefer-offline --no-audit --no-fund | |
- name: Publish Airbyte CDK package | |
run: | | |
cd faros-airbyte-cdk && \ | |
npm i && \ | |
npm version ${{ env.TAG_VERSION }} && \ | |
npm publish --access public --tag latest | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Publish Airbyte Common package | |
run: | | |
cd faros-airbyte-common && \ | |
npm i && \ | |
npm version ${{ env.TAG_VERSION }} && \ | |
npm publish --access public --tag latest | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Publish Faros Destination package | |
run: | | |
cd destinations/airbyte-faros-destination && \ | |
cat package.json | jq --arg V "${{ env.TAG_VERSION }}" '(.dependencies."faros-airbyte-cdk",.dependencies."faros-airbyte-common") = $V' > package.tmp && \ | |
mv package.tmp package.json && \ | |
npm i && \ | |
npm version ${{ env.TAG_VERSION }} && \ | |
npm publish --access public --tag latest | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
publish-connectors: | |
name: Publish connectors | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- name: Check out | |
uses: actions/checkout@v4 | |
- name: Extract tag version | |
id: extract-tag-version | |
run: | | |
TAG="${GITHUB_REF:10}" | |
TAG_VERSION="${TAG//v/}" | |
echo "TAG_VERSION=$TAG_VERSION" >> $GITHUB_ENV | |
- name: Docker login | |
uses: docker/[email protected] | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Publish connector images | |
env: | |
DOCKER_BUILDKIT: 1 | |
run: | | |
for connector_path in $(ls -d sources/*/ destinations/*/) | |
do | |
./scripts/publish-connector.sh $connector_path ${{ env.TAG_VERSION }} | |
done |