mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-09 05:26:24 +09:00
10 files changed
+123
-9
No files matched your search
@@ -0,0 +1,38 @@
|
||||
name: 'Release NPM package'
|
||||
description: 'Release NPM package'
|
||||
inputs:
|
||||
skip-build:
|
||||
description: 'Skip build phase (useful for only configuration files)'
|
||||
default: ''
|
||||
filter:
|
||||
description: 'Filter build phase by turbo'
|
||||
default: ''
|
||||
required: true
|
||||
workdir:
|
||||
description: 'Work directory for NPM publish'
|
||||
default: '.'
|
||||
required: true
|
||||
token:
|
||||
description: 'NPM Token'
|
||||
default: 'null'
|
||||
required: true
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
- name: Install dependencies and build 🔧
|
||||
run: yarn install
|
||||
shell: bash
|
||||
- name: Build 🔧
|
||||
if: ${{ inputs.skip-build == '' }}
|
||||
run: yarn build --filter ${{ inputs.filter }}
|
||||
shell: bash
|
||||
- name: Publish package on NPM 📦
|
||||
run: npm publish -w ${{ inputs.workdir }} --access public --dry-run
|
||||
shell: bash
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ inputs.token }}
|
||||
@@ -4,7 +4,9 @@ on:
|
||||
paths:
|
||||
- "packages/asset-uploader/**/*"
|
||||
- ".github/workflows/asset-uploader.yml"
|
||||
- ".github/actions/publish/action.yaml"
|
||||
- ".github/actions/publish-test/action.yaml"
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -4,7 +4,9 @@ on:
|
||||
paths:
|
||||
- "packages/design-system/**/*"
|
||||
- ".github/workflows/design-system.yml"
|
||||
- ".github/actions/publish/action.yaml"
|
||||
- ".github/actions/publish-test/action.yaml"
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -4,7 +4,9 @@ on:
|
||||
paths:
|
||||
- "packages/eslint-config-custom/**/*"
|
||||
- ".github/workflows/eslint-config-custom.yml"
|
||||
- ".github/actions/publish/action.yaml"
|
||||
- ".github/actions/publish-test/action.yaml"
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -4,7 +4,9 @@ on:
|
||||
paths:
|
||||
- "packages/http-client/**/*"
|
||||
- ".github/workflows/http-client.yml"
|
||||
- ".github/actions/publish/action.yaml"
|
||||
- ".github/actions/publish-test/action.yaml"
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -3,8 +3,10 @@ on:
|
||||
push:
|
||||
paths:
|
||||
- "packages/icons/**/*"
|
||||
- ".github/workflows/icons-publish.yml"
|
||||
- ".github/actions/publish/action.yaml"
|
||||
- ".github/workflows/package-tests.yml"
|
||||
- ".github/actions/publish-test/action.yaml"
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -4,7 +4,9 @@ on:
|
||||
paths:
|
||||
- "packages/jest-config/**/*"
|
||||
- ".github/workflows/jest-config.yml"
|
||||
- ".github/actions/publish/action.yaml"
|
||||
- ".github/actions/publish-test/action.yaml"
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
name: Package tests (dry-run)
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- "packages/**/*"
|
||||
- ".github/workflows/package-tests.yml"
|
||||
- ".github/actions/publish-test/action.yaml"
|
||||
jobs:
|
||||
publish-test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/publish-test
|
||||
if: always()
|
||||
with:
|
||||
workdir: ./packages/asset-uploader
|
||||
filter: "@webstudio-is/asset-uploader"
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
||||
- uses: ./.github/actions/publish-test
|
||||
if: always()
|
||||
with:
|
||||
workdir: ./packages/design-system
|
||||
filter: "@webstudio-is/design-system"
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
||||
- uses: ./.github/actions/publish-test
|
||||
if: always()
|
||||
with:
|
||||
workdir: ./packages/eslint-config-custom
|
||||
filter: "@webstudio-is/eslint-config-custom"
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
||||
- uses: ./.github/actions/publish-test
|
||||
if: always()
|
||||
with:
|
||||
workdir: ./packages/http-client
|
||||
filter: "@webstudio-is/http-client"
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
||||
- uses: ./.github/actions/publish-test
|
||||
if: always()
|
||||
with:
|
||||
workdir: ./packages/icons
|
||||
filter: "@webstudio-is/icons"
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
||||
- uses: ./.github/actions/publish-test
|
||||
if: always()
|
||||
with:
|
||||
workdir: ./packages/jest-config
|
||||
filter: "@webstudio-is/jest-config"
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
||||
- uses: ./.github/actions/publish-test
|
||||
if: always()
|
||||
with:
|
||||
workdir: ./packages/react-sdk
|
||||
filter: "@webstudio-is/react-sdk"
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
||||
- uses: ./.github/actions/publish-test
|
||||
if: always()
|
||||
with:
|
||||
workdir: ./packages/tsconfig
|
||||
filter: "@webstudio-is/tsconfig"
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
||||
@@ -4,7 +4,9 @@ on:
|
||||
paths:
|
||||
- "packages/react-sdk/**/*"
|
||||
- ".github/workflows/react-sdk.yml"
|
||||
- ".github/actions/publish/action.yaml"
|
||||
- ".github/actions/publish-test/action.yaml"
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -4,7 +4,9 @@ on:
|
||||
paths:
|
||||
- "packages/tsconfig/**/*"
|
||||
- ".github/workflows/tsconfig.yml"
|
||||
- ".github/actions/publish/action.yaml"
|
||||
- ".github/actions/publish-test/action.yaml"
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in new issue
Block a user