Skip to content

Commit

Permalink
feat: 🎸 release
Browse files Browse the repository at this point in the history
  • Loading branch information
iam-medvedev committed Jan 25, 2023
1 parent 5b90845 commit 9df6802
Show file tree
Hide file tree
Showing 8 changed files with 8,007 additions and 1,543 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: release

on: workflow_dispatch

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.13.0
cache: 'yarn'

- name: Install dependencies
run: yarn add --cached

- name: Build
run: yarn build

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn semantic-release
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
cache: 'yarn'

- name: Install dependencies
run: yarn
run: yarn add --cached

- name: Check types
run: yarn types
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ dist
.bench
coverage
coverage.xml
.yarn/*
!.yarn/releases
!.yarn/plugins
23 changes: 23 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"branches": ["main"],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "angular",
"releaseRules": [
{ "type": "feat", "release": "minor" },
{ "type": "fix", "release": "patch" },
{ "type": "perf", "release": "patch" },
{ "type": "refactor", "release": "patch" },
{ "type": "style", "release": "patch" },
{ "type": "chore", "release": "patch" }
]
}
],
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/github"
]
}
823 changes: 823 additions & 0 deletions .yarn/releases/yarn-3.3.1.cjs

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-3.3.1.cjs
19 changes: 17 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,25 @@
"build": "rm -rf ./dist && NODE_ENV=production yarn build:transpile && NODE_ENV=production yarn build:types",
"build:transpile": "tsx ./build.ts",
"build:types": "tsc --emitDeclarationOnly --declaration --outDir dist",
"commit": "yarn git-cz",
"demo": "vite -c ./demo/vite.config.ts",
"types": "tsc --noEmit",
"test": "vitest",
"test:ci": "vitest run --coverage --reporter=junit --outputFile.junit=./coverage.xml"
},
"devDependencies": {
"@semantic-release/changelog": "6.0.2",
"@semantic-release/commit-analyzer": "9.0.2",
"@semantic-release/github": "8.0.7",
"@semantic-release/npm": "9.0.2",
"@semantic-release/release-notes-generator": "10.0.3",
"@vitest/coverage-c8": "^0.28.1",
"benny": "^3.7.1",
"cz-conventional-changelog": "3.3.0",
"esbuild": "^0.17.4",
"git-cz": "4.9.0",
"prettier": "^2.8.3",
"semantic-release": "20.0.2",
"tsx": "^3.12.2",
"typescript": "^4.9.3",
"vite": "^4.0.0",
Expand All @@ -53,6 +62,12 @@
},
"volta": {
"node": "18.13.0",
"yarn": "1.22.5"
}
"yarn": "1.22.19"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"packageManager": "yarn@3.3.1"
}
Loading

0 comments on commit 9df6802

Please sign in to comment.