Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,30 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check if main is ahead of release
id: check
run: |
git fetch origin main release
ahead=$(git rev-list --count origin/release..origin/main)
if [ "$ahead" -eq 0 ]; then
echo "No commits on main ahead of release — nothing to release."
echo "skip=true" >> "$GITHUB_OUTPUT"
else
echo "$ahead commit(s) on main ahead of release."
echo "skip=false" >> "$GITHUB_OUTPUT"
fi
- uses: ruby/setup-ruby@v1
if: steps.check.outputs.skip != 'true'
with:
ruby-version: 3.1
- run: gem install --no-document git-pr-release
- run: git-pr-release --squashed
- if: steps.check.outputs.skip != 'true'
run: gem install --no-document git-pr-release
- if: steps.check.outputs.skip != 'true'
run: git-pr-release --squashed
env:
GIT_PR_RELEASE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_PR_RELEASE_BRANCH_PRODUCTION: release
GIT_PR_RELEASE_BRANCH_STAGING: main
GIT_PR_RELEASE_LABELS: "release-candidate"
GIT_PR_RELEASE_TEMPLATE: .github/RELEASE_PR_TEMPLATE
TZ: Asia/Kuala_Lumpur
continue-on-error: false
TZ: Asia/Kuala_Lumpur
324 changes: 19 additions & 305 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,313 +1,27 @@
# Dependencies
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
.pnp
.pnp.js

# Testing
coverage/
*.lcov
.nyc_output
*.test.js.snap
.jest/
# Nuxt dev/build outputs
.output
.data
.nuxt
.nitro
.cache
dist

# Production builds
dist/
build/
out/
.next/
.nuxt/
.vuepress/dist/
.serverless/
.fusebox/
.dynamodb/
.tern-port
*.tsbuildinfo
# Dependencies
node_modules

# Environment variables
.env
.env.local
.env.development.local
.env.test.local
.env.production.local
.env*.local
# Bun (commit bun.lock; do not ignore)
.bun-install-cache

# Logs
logs/
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
.pnpm-debug.log*

# Runtime data
pids/
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov/

# Coverage directory used by tools like istanbul
coverage/
*.lcov

# nyc test coverage
.nyc_output/

# Grunt intermediate storage
.grunt/

# Bower dependency directory
bower_components/

# node-waf configuration
.lock-wscript

# Compiled binary addons
build/Release

# Dependency directories
jspm_packages/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# parcel-bundler cache
.cache/
.parcel-cache/

# Next.js
.next/
out/

# Nuxt.js
.nuxt/
dist/

# Gatsby files
.cache/
public/

# Vue.js
dist/
.DS_Store

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
env/
venv/
ENV/
env.bak/
venv.bak/
pip-log.txt
pip-delete-this-directory.txt
.pytest_cache/
.coverage
htmlcov/
.tox/
.nox/
*.egg-info/
dist/
build/
*.egg
MANIFEST

# Ruby
*.gem
*.rbc
/.config
/coverage/
/InstalledFiles
/pkg/
/spec/reports/
/spec/examples.txt
/test/tmp/
/test/version_tmp/
/tmp/
*.bundle
*.so
*.o
*.a
mkmf.log
x86_64-linux/
lib/bundler/man/
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
*.log
*.swp
*.swo
*~

# Java
*.class
*.log
*.ctxt
.mtj.tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.settings/
.loadpath
.recommenders
.project
.classpath
.factorypath
build/
target/
!**/src/main/**/target/
!**/src/test/**/target/
*.iml
*.ipr
*.iws
.idea/

# Go
*.exe
*.exe~
*.dll
*.so
*.dylib
*.test
*.out
go.work
vendor/

# Rust
target/
Cargo.lock
**/*.rs.bk
*.pdb

# IDEs and Editors
.vscode/
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.swp
*.swo
*~
.idea/
*.iml
*.ipr
*.iws
.project
.classpath
.settings/
.loadpath
.buildpath
*.sublime-project
*.sublime-workspace
.DS_Store
Thumbs.db

# OS Files
# Misc
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
Desktop.ini
$RECYCLE.BIN/
.fleet
.idea

# Temporary files
*.tmp
*.temp
*.bak
*.swp
*~
.cache/

# Database
*.db
*.sqlite
*.sqlite3
*.db-journal

# Docker
.dockerignore
docker-compose.override.yml

# Terraform
*.tfstate
*.tfstate.*
.terraform/
.terraform.lock.hcl
crash.log
override.tf
override.tf.json
*_override.tf
*_override.tf.json

# Misc
*.zip
*.tar.gz
*.rar
.vscode-test/
# Local env files
.env
.env.*
!.env.example
6 changes: 6 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Supply-chain: skip npm package versions published in the last 7 days (npm CLI 11.10+).
# Bun uses bunfig.toml `[install].minimumReleaseAge` (seconds) as the primary setting.
min-release-age=7

# Prefer exact versions from the lockfile; avoid silent semver drift on install.
save-exact=false
Loading
Loading