Skip to content

chore: update gcssjs structure; enable cli #1

chore: update gcssjs structure; enable cli

chore: update gcssjs structure; enable cli #1

Workflow file for this run

name: plugins_ci

Check failure on line 1 in .github/workflows/plugins_ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/plugins_ci.yml

Invalid workflow file

you may only define one of `paths` and `paths-ignore` for a single event
on:
push:
branches:
- main
tags-ignore:
- "**"
paths:
- "plugins/**"
paths-ignore:
- "plugins/**/*.md"
- "plugins/**/LICENSE"
- "plugins/**/.editorconfig"
- "plugins/**/docs/**"
workflow_dispatch:
jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Filter paths
id: filter
uses: dorny/paths-filter@v2
with:
filters: |
gcssjs-rollup:
- 'plugins/gcssjs-rollup/**'
gcssjs-vite:
- 'plugins/gcssjs-vite/**'
gcssjs-webpack:
- 'plugins/gcssjs-webpack/**'
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "yarn"
- name: Build and publish gcssjs-rollup
if: steps.filter.outputs.gcssjs-rollup == 'true'
working-directory: plugins/gcssjs-rollup/package
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
yarn install
yarn build
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc
# npm publish --access public
- name: Build and publish gcssjs-vite
if: steps.filter.outputs.gcssjs-vite == 'true'
working-directory: plugins/gcssjs-vite/package
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
yarn install
yarn build
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc
# npm publish --access public
- name: Build and publish gcssjs-webpack
if: steps.filter.outputs.gcssjs-webpack == 'true'
working-directory: plugins/gcssjs-webpack/package
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
yarn install
yarn build
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc
npm publish --access public