mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-08 04:55:06 +09:00
Merge pull request #246 from webstudio-is/fix-github-actions
fix: GitHub actions
This commit is contained in:
17 files changed
+84
-31
No files matched your search
@@ -1,9 +1,16 @@
|
||||
name: 'Release NPM package'
|
||||
description: 'Release NPM package'
|
||||
inputs:
|
||||
package:
|
||||
description: 'Package.json location (relative)'
|
||||
default: 'package.json'
|
||||
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'
|
||||
@@ -16,13 +23,16 @@ runs:
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
- name: Install Dependencies
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
- name: Install dependencies and build 🔧
|
||||
run: yarn install
|
||||
shell: bash
|
||||
- uses: JS-DevTools/npm-publish@v1
|
||||
with:
|
||||
token: ${{ inputs.token }}
|
||||
dry-run: false
|
||||
check-version: true
|
||||
access: 'public'
|
||||
package: ${{ inputs.package }}
|
||||
- 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
|
||||
shell: bash
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ inputs.token }}
|
||||
@@ -0,0 +1,17 @@
|
||||
name: Asset Uploader
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- "packages/asset-uploader/**/*"
|
||||
- ".github/workflows/asset-uploader.yml"
|
||||
- ".github/actions/publish/action.yaml"
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/publish
|
||||
with:
|
||||
workdir: ./packages/asset-uploader
|
||||
filter: "@webstudio-is/asset-uploader"
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
||||
@@ -1,4 +1,4 @@
|
||||
name: Design System Publish
|
||||
name: Design System
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
@@ -12,5 +12,6 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/publish
|
||||
with:
|
||||
package: "./packages/design-system/package.json"
|
||||
workdir: ./packages/design-system
|
||||
filter: "@webstudio-is/design-system"
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
||||
@@ -1,4 +1,4 @@
|
||||
name: Eslint Config Publish
|
||||
name: Eslint Config
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
@@ -12,5 +12,7 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/publish
|
||||
with:
|
||||
package: "./packages/eslint-config-custom/package.json"
|
||||
skip-build: true
|
||||
workdir: ./packages/eslint-config-custom
|
||||
filter: "@webstudio-is/eslint-config-custom"
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
||||
@@ -0,0 +1,17 @@
|
||||
name: HTTP Client
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- "packages/http-client/**/*"
|
||||
- ".github/workflows/http-client.yml"
|
||||
- ".github/actions/publish/action.yaml"
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/publish
|
||||
with:
|
||||
workdir: ./packages/http-client
|
||||
filter: "@webstudio-is/http-client"
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
||||
@@ -1,4 +1,4 @@
|
||||
name: Icons Publish
|
||||
name: Icons
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
@@ -12,5 +12,6 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/publish
|
||||
with:
|
||||
package: "./packages/icons/package.json"
|
||||
workdir: ./packages/icons
|
||||
filter: "@webstudio-is/icons"
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
||||
@@ -1,4 +1,4 @@
|
||||
name: Jest Config Publish
|
||||
name: Jest Config
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
@@ -12,5 +12,7 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/publish
|
||||
with:
|
||||
package: "./packages/jest-config/package.json"
|
||||
skip-build: true
|
||||
workdir: ./packages/jest-config
|
||||
filter: "@webstudio-is/jest-config"
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
||||
@@ -1,4 +1,4 @@
|
||||
name: SDK publish
|
||||
name: React SDK
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
@@ -12,5 +12,6 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/publish
|
||||
with:
|
||||
package: "./packages/react-sdk/package.json"
|
||||
workdir: ./packages/react-sdk
|
||||
filter: "@webstudio-is/react-sdk"
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
||||
@@ -1,4 +1,4 @@
|
||||
name: Tsconfig Publish
|
||||
name: Tsconfig
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
@@ -12,5 +12,7 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/publish
|
||||
with:
|
||||
package: "./packages/tsconfig/package.json"
|
||||
skip-build: true
|
||||
workdir: ./packages/tsconfig
|
||||
filter: "@webstudio-is/tsconfig"
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@webstudio-is/asset-uploader",
|
||||
"version": "0.0.1",
|
||||
"version": "0.1.0",
|
||||
"description": "Webstudio Asset Uploader",
|
||||
"author": "Webstudio <github@webstudio.is>",
|
||||
"homepage": "https://webstudio.is",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@webstudio-is/design-system",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.1",
|
||||
"description": "Webstudio Design System",
|
||||
"author": "Webstudio <github@webstudio.is>",
|
||||
"homepage": "https://webstudio.is",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@webstudio-is/eslint-config-custom",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"main": "index.js",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@webstudio-is/icons",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.1",
|
||||
"description": "Webstudio Icons",
|
||||
"author": "Webstudio <github@webstudio.is>",
|
||||
"homepage": "https://webstudio.is",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@webstudio-is/jest-config",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@types/jest": "^27.4.1",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@webstudio-is/prisma-client",
|
||||
"version": "0.0.1",
|
||||
"version": "0.1.0",
|
||||
"description": "Webstudio Prisma layer",
|
||||
"author": "Webstudio <github@webstudio.is>",
|
||||
"homepage": "https://webstudio.is",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@webstudio-is/react-sdk",
|
||||
"version": "0.5.0",
|
||||
"version": "0.5.1",
|
||||
"description": "Webstudio JavaScript / TypeScript API",
|
||||
"author": "Webstudio <github@webstudio.is>",
|
||||
"homepage": "https://webstudio.is",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@webstudio-is/tsconfig",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"private": false,
|
||||
"main": "index.js",
|
||||
"files": [
|
||||
|
||||
Reference in new issue
Block a user