Skip to content

Support for nesting namespaces #51

Support for nesting namespaces

Support for nesting namespaces #51

Workflow file for this run

name: validate
on:
push:
branches:
- 'main'
- 'beta'
pull_request: {}
jobs:
main:
strategy:
matrix:
node: [18, 20]
vite: [4, 5]
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/[email protected]
- name: ⬇️ Checkout repo
uses: actions/checkout@v2
- name: ⎔ Setup node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: 📥 Download deps
uses: bahmutov/npm-install@v1
with:
useLockFile: false
- name: ⚡️ Setup vite
run: npm install vite@${{ matrix.vite }}
- name: 🧹 Linting
run: npm run lint
- name: ✅ Tests
run: npm run test
release:
needs: main
runs-on: ubuntu-latest
if:
${{ github.repository == 'larowlan/vite-plugin-twig-drupal' &&
contains('refs/heads/main',github.ref) && github.event_name == 'push' }}
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/[email protected]
- name: ⬇️ Checkout repo
uses: actions/checkout@v2
- name: ⎔ Setup node
uses: actions/setup-node@v2
with:
node-version: 18
- name: 📥 Download deps
uses: bahmutov/npm-install@v1
with:
useLockFile: false
- name: 🏗 Run build script
run: npm run build
- name: 🚀 Release
uses: cycjimmy/semantic-release-action@v4
with:
semantic_version: 22
branches: |
[
'main'
]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}