Skip to content

Commit 0d5d10b

Browse files
committed
ci: update workflows to include license checks and tagging
1 parent 0ab93a7 commit 0d5d10b

File tree

19 files changed

+309
-42
lines changed

19 files changed

+309
-42
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ jobs:
3030
run: pnpm install
3131

3232
- name: Check
33-
run: pnpm nx run-many --target=build,lint,test --parallel=3 --exclude="@storyblok/playground-*"
33+
run: pnpm nx run-many --target=build,lint,test --parallel=3 -p="tag:npm:public"
3434
env:
3535
VITE_ACCESS_TOKEN: ${{ secrets.VITE_ACCESS_TOKEN }}
3636
VITE_SPACE_ID: ${{ vars.VITE_SPACE_ID }}
37+
38+
- name: Check Licenses
39+
run: nx exec -p="tag:npm:public" -- pnpm -w monoblok license check \$NX_PROJECT_NAME

.github/workflows/pr-preview.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
run: pnpm install
3232

3333
- name: Build
34-
run: pnpm nx run-many --target=build --parallel=5 --exclude="@storyblok/playground-*"
34+
run: pnpm nx run-many --target=build --parallel=5 -p="tag:npm:public"
3535

3636
- name: Generate PR version
3737
id: pr-version

packages/astro/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@
145145
"nx": {
146146
"implicitDependencies": [
147147
"!@storyblok/playground-*"
148+
],
149+
"tags": [
150+
"type:lib"
148151
]
149152
}
150153
}

packages/astro/playground/ssg/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@storyblok/playground-astro-ssg",
33
"version": "0.0.0",
4+
"private": true,
45
"scripts": {
56
"dev": "astro dev",
67
"start": "astro dev",

packages/astro/playground/ssr/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "@storyblok/playground-astro-ssr",
3+
"private": true,
34
"version": "0.0.0",
45
"scripts": {
56
"dev": "astro dev",

packages/astro/playground/test/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "@storyblok/playground-astro-test",
3+
"private": true,
34
"version": "0.0.0",
45
"scripts": {
56
"dev": "astro dev",

packages/js/playground/vanilla/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "@storyblok/playground-js-vanilla",
3+
"private": true,
34
"version": "0.0.1",
45
"scripts": {
56
"dev": "vite",

packages/js/playground/vue/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@storyblok/playground-js-vue",
33
"version": "0.0.0",
4+
"private": true,
45
"scripts": {
56
"dev": "vite",
67
"build": "vite build"

packages/react/playground/react/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@storyblok/playground-react-vite",
33
"type": "module",
4+
"private": true,
45
"version": "0.0.1",
56
"scripts": {
67
"dev": "vite",

packages/richtext/playground/astro/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@storyblok/playground-richtext-astro",
33
"type": "module",
4+
"private": true,
45
"version": "0.0.1",
56
"scripts": {
67
"dev": "astro dev",

0 commit comments

Comments
 (0)