Skip to content

Commit

Permalink
chore(workflow): add a workflow for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
andypf committed Jul 25, 2024
1 parent 3e6e8e5 commit 9d1b7e7
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 12 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Setup Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x

- name: Install Dependencies
run: npm ci

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
8 changes: 3 additions & 5 deletions apps/example/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
"extends": ["//"],
"tasks": {
"dev": {
"dependsOn": [
"@cloudoperators/juno-ui-components#build",
"@cloudoperators/juno-messages-provider#build"
]
"dependsOn": ["@cloudoperators/juno-ui-components#build", "@cloudoperators/juno-messages-provider#build"]
},
"build": {
"dependsOn": [
"@cloudoperators/juno-ui-components#build",
"@cloudoperators/juno-messages-provider#build"
"@cloudoperators/juno-messages-provider#build",
"@cloudoperators/juno-communicator#build"
]
},
"test": {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "juno",
"scripts": {
"build": "turbo run build",
"dev": "turbo run dev",
"dev": "turbo run dev --parallel",
"lint": "turbo run lint",
"test": "turbo run test --parallel",
"check-licenses": "npx license-checker-rseidelsohn --summary --excludePrivatePackages --onlyAllow 'MIT;ISC;Apache-2.0;BSD-2-Clause;BSD-3-Clause;BSD-4-Clause;CC-BY-3.0;CC-BY-4.0;BlueOak-1.0.0;CC0-1.0;0BSD;Python-2.0;BSD*;Unlicense'",
Expand All @@ -13,7 +13,7 @@
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,md}\"",
"changeset": "changeset",
"version-packages": "changeset version",
"release": "turbo run build --filter=docs^... && changeset publish"
"release": "turbo run build && changeset publish"
},
"devDependencies": {
"@changesets/cli": "^2.27.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/*
* SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Juno contributors
* SPDX-License-Identifier: Apache-2.0
*/

/* Do not change this File. This is an (by generateTailwindThemeClassesJson.js) auto-generated file for documentation issues.
It is needed for the ColorPalette and JunoColorPalette to show the documented colors.
We need to do this because Tailwind classes can't be concatenated at runtime via String interpolation. It only works if you use the full class name.*/
Expand Down

0 comments on commit 9d1b7e7

Please sign in to comment.