add css custom props editor #177
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish @next to NPM on dev branch merge | |
on: | |
push: | |
branches: | |
- dev # Trigger on push to the dev branch, adjust as needed | |
jobs: | |
publish-npm: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git configuration | |
run: | | |
git config --global user.email "patrick.deklein@cito.nl" | |
git config --global user.name "patrickdeklein" | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
registry-url: 'https://registry.npmjs.org/' | |
- name: Install dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build | |
- name: Install playwright | |
run: npx playwright install --with-deps | |
- name: Test build | |
run: npm run test | |
# - name: Run Chromatic | |
# uses: chromaui/action@latest | |
# with: | |
# ⚠️ Make sure to configure a `CHROMATIC_PROJECT_TOKEN` repository secret | |
# projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
- name: Version to prerelease | |
run: npm version prerelease --preid=beta | |
# Push repository changes | |
- name: Push changes to repository | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: git push origin && git push --tags | |
- name: Publish with tag next | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: npm publish --tag next | |