Skip to content

Commit

Permalink
chore: add missing yarn install
Browse files Browse the repository at this point in the history
  • Loading branch information
lordrip committed Feb 2, 2024
1 parent e16cbd8 commit 5839777
Showing 1 changed file with 67 additions and 52 deletions.
119 changes: 67 additions & 52 deletions .github/workflows/release-pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release Pipeline, create a tag/release for Kaoto Next, publish the NPM and release a container image
name: 🏷️ Release Pipeline, create a tag/release for Kaoto Next, publish the NPM and release a container image
on:
workflow_dispatch:
inputs:
Expand All @@ -9,40 +9,78 @@ on:

jobs:

tag-and-release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ github.event.inputs.tag_version }}
create_annotated_tag: true
tag_prefix: ""

- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}

npm-release:
# tag-and-release:
# permissions:
# contents: write
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4

# - name: Bump version and push tag
# id: tag_version
# uses: mathieudutour/[email protected]
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# custom_tag: ${{ github.event.inputs.tag_version }}
# create_annotated_tag: true
# tag_prefix: ""

# - name: Create a GitHub release
# uses: ncipollo/release-action@v1
# with:
# tag: ${{ steps.tag_version.outputs.new_tag }}
# name: Release ${{ steps.tag_version.outputs.new_tag }}
# body: ${{ steps.tag_version.outputs.changelog }}

# npm-release:
# permissions:
# contents: write
# runs-on: ubuntu-latest
# needs:
# - tag-and-release

# steps:
# - name: "🛰️ Checkout source code"
# uses: actions/checkout@v4

# - uses: actions/setup-node@v4
# with:
# node-version: '20.x'
# registry-url: 'https://registry.npmjs.org'
# scope: '@kaoto-next'
# cache: 'yarn'

# - uses: actions/setup-java@v4
# with:
# distribution: 'temurin'
# java-version: '21'

# - name: 🔧 Install dependencies
# run: yarn

# # Build lib
# - name: Build @kaoto-next/ui package in lib mode
# run: yarn workspace @kaoto-next/ui run build:lib

# # Version and publish
# - name: 'Version and publish'
# env:
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NODE_AUTH_TOKEN: ${{ secrets.KAOTO_NEXT_NPM_TOKEN }}
# run: yarn publish

container-image-release:
permissions:
contents: write
runs-on: ubuntu-latest
needs:
- tag-and-release

# needs:
# - tag-and-release
# - npm-release

steps:
- name: "🛰️ Checkout source code"
uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '20.x'
Expand All @@ -58,29 +96,6 @@ jobs:
- name: 🔧 Install dependencies
run: yarn

# Build lib
- name: Build @kaoto-next/ui package in lib mode
run: yarn workspace @kaoto-next/ui run build:lib

# Version and publish
- name: 'Version and publish'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.KAOTO_NEXT_NPM_TOKEN }}
run: yarn publish

container-image-release:
permissions:
contents: write
runs-on: ubuntu-latest
needs:
- tag-and-release
- npm-release

steps:
- name: "🛰️ Checkout source code"
uses: actions/checkout@v4

- name: "🔧 Build packages"
run: |
yarn workspaces foreach --verbose --topological-dev --exclude @kaoto-next/camel-catalog run build
Expand Down

0 comments on commit 5839777

Please sign in to comment.