Skip to content

Instantly share code, notes, and snippets.

View vtenq's full-sized avatar
🙃

Vlad vtenq

🙃
  • Ukraine
View GitHub Profile

Simplified Git flow with GitHub Actions

Main concepts:

  • remove development branch
  • use master as the only and main branch
  • squash feature branches into master directly

CI

  • run lint test build jobs before merging into master
@vtenq
vtenq / git-workflow.md
Last active April 19, 2024 07:53
Git workflow with conventional commits and semantic auto release

Git workflow with conventional commits and semantic auto release

This is an adoptation of Git flow by Vincent Driessen with conventional commits and semantic release.

The main concepts

At the core, the development model is greatly inspired by existing models out there. The central repo holds two main branches with an infinite lifetime:

# Install ssh client if not installed yet
- 'which ssh-agent || (apt-get update -y && apt-get install openssh-client -y)'
- eval $(ssh-agent -s)
# Add ssh private to the agent where $SSH_PRIVATE_KEY is env variable
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
- mkdir -p ~/.ssh && chmod 700 ~/.ssh
# Add remote server to known hosts (change IP Address, and also the remote server
# should already have public key installed so that it will be possible to connet)
@vtenq
vtenq / env.sh
Created August 24, 2019 09:42
Generate js file that will add process env values to window object
#!/bin/bash
# Recreate config file
rm -rf ./env-config.js
touch ./env-config.js
# Add assignment
echo "(() => {" >> ./env-config.js
echo " window._env_ = {" >> ./env-config.js
@vtenq
vtenq / webdev_online_resources.md
Last active October 29, 2022 16:13 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
.container {
width: 100%;
height: 100%;
overflow-x: hidden;
overflow-y: scroll;
perspective: 1px;
perspective-origin: 0 0;
}
.parallax-child {