Skip to content

Instantly share code, notes, and snippets.

View WasathTheekshana's full-sized avatar
🇱🇰
IYKYK

waZath WasathTheekshana

🇱🇰
IYKYK
View GitHub Profile
@WasathTheekshana
WasathTheekshana / commitlint.config.ts
Last active October 22, 2023 08:47
Commitlint config file for conventional commit messages
module.exports = {
extends: ["@commitlint/config-conventional"],
rules: {
"type-enum": [
2,
"always",
["feat!", "feat", "fix", "patch", "chore", "build", "debug", "refactor", "revert", "ci", "perf", "style", "test", "docs", "wip"]
],
"type-case": [0],
"subject-case": [0],
@WasathTheekshana
WasathTheekshana / azure-container-registry.yml
Last active October 17, 2023 06:09
Deploy a Docker Container to Azure Container Registry with a GitHub action
on: [push]
name: Linux_Container_Workflow
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
# checkout the repo
- name: 'Checkout GitHub Action'
uses: actions/checkout@main
@WasathTheekshana
WasathTheekshana / Container.tsx
Created October 17, 2023 04:09
A container to wrap all the children elements according to the break points | NEXTJS COMPONENT | TAILWIND CSS
// Use this component to wrap all the content of the page
'use client';
interface ContainerProps {
children: React.ReactNode;
}
const Container: React.FC<ContainerProps> = ({
children