Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

Checking shared github actions

Andras Bacsaife717d037a94
diff --git a/.github/actions/publish/base.yaml b/.github/actions/publish/base.yaml
new file mode 100644
index 0000000000..2a03c0edf4
--- /dev/null
+++ b/.github/actions/publish/base.yaml
@@ -0,0 +1,20 @@
+inputs:
+ package:
+ description: 'Package.json location (relative)'
+ default: null
+runs:
+ using: "composite"
+ steps:
+ - uses: actions/checkout@v3
+ - uses: actions/setup-node@v3
+ with:
+ node-version: 16
+ - name: Install Dependencies
+ run: yarn install
+ - uses: JS-DevTools/npm-publish@v1
+ with:
+ token: ${{ secrets.NPM_TOKEN }}
+ dry-run: false
+ check-version: true
+ access: 'public'
+ package: $ {{ inputs.package }}
\ No newline at end of file
diff --git a/.github/workflows/eslint-config-custom-publish.yml b/.github/workflows/eslint-config-custom-publish.yml
index 1c35ddc517..5ef6940ba5 100644
--- a/.github/workflows/eslint-config-custom-publish.yml
+++ b/.github/workflows/eslint-config-custom-publish.yml
@@ -8,16 +8,6 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
- - uses: actions/setup-node@v3
- with:
- node-version: 16
- - name: Install Dependencies
- run: yarn install
- - uses: JS-DevTools/npm-publish@v1
- with:
- token: ${{ secrets.NPM_TOKEN }}
- dry-run: false
- check-version: true
- access: 'public'
- package: './packages/eslint-config-custom/package.json'
\ No newline at end of file
+ - uses: ./.github/actions/publish/base
+ with:
+ package: './packages/eslint-config-custom/package.json'
\ No newline at end of file