Skip to content

Commit

Permalink
chore: configure release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
itsacoyote committed May 23, 2024
1 parent ba1458d commit e80a587
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 11 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
name: "release 🚀"
"on":
name: release 🚀

on:
push:
branches: [ main ]

env:
HUSKY: 0
CI: true

jobs:
release:
if: ${{ github.event.repository.full_name == github.repository }} && {{ !contains(github.event.head_commit.message, "skip ci") }}
Expand All @@ -12,14 +18,15 @@ jobs:
fetch-depth: 0
persist-credentials: false

- uses: actions/setup-node@v4
with:
node-version: 'latest'
- uses: oven-sh/setup-bun@v1

- name: "Install dependencies"
run: bun install
run: bun install --frozen-lockfile

- name: "Semantic release"
run: bun run semantic-release
- name: "Release"
run: bun run release
env:
HUSKY: 0
CI: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 6 additions & 0 deletions .husky/install.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Skip Husky install in production and CI
if (process.env.NODE_ENV === 'production' || process.env.CI === 'true') {
process.exit(0);
}
const husky = (await import('husky')).default;
console.log(husky());
Binary file modified bun.lockb
Binary file not shown.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"lint-staged": "^15.2.4",
"markdownlint": "^0.33.0",
"markdownlint-cli2": "^0.12.1",
"nuxt-headlessui": "^1.2.0",
"particles.vue3": "^2.12.0",
"prettier": "^3.1.0",
"prettier-plugin-tailwindcss": "^0.5.12",
Expand All @@ -37,6 +36,7 @@
"@nuxt/image": "^1.6.0",
"@nuxt/ui-pro": "^1.0.2",
"@nuxtjs/seo": "^2.0.0-rc.10",
"nuxt-headlessui": "^1.2.0",
"@tsparticles/slim": "^3.3.0",
"@tsparticles/vue3": "^3.0.1",
"nuxt": "^3.11.2",
Expand All @@ -55,9 +55,9 @@
"lint:eslint": "eslint .",
"lint:prettier": "prettier --check .",
"fix:prettier": "prettier --write .",
"prepare": "husky",
"prepare": "node .husky/install.mjs",
"postinstall": "nuxt prepare",
"ci:check": "bun run lint:eslint && bun run lint:prettier && bun run lint:spelling && bun run lint:markdown",
"semantic-release": "semantic-release"
"release": "semantic-release"
}
}

0 comments on commit e80a587

Please sign in to comment.