Skip to content

Commit de85b8d

Browse files
committed
chore: try to release
1 parent f784c5e commit de85b8d

7 files changed

Lines changed: 255 additions & 309 deletions

File tree

.github/workflows/release.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- beta
8+
9+
permissions:
10+
contents: read # for checkout
11+
12+
jobs:
13+
release:
14+
name: Release
15+
runs-on: ubuntu-latest
16+
permissions:
17+
contents: write # to be able to publish a GitHub release
18+
issues: write # to be able to comment on released issues
19+
pull-requests: write # to be able to comment on released pull requests
20+
id-token: write # to enable use of OIDC for trusted publishing and npm provenance
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0
26+
27+
- name: Setup Node.js
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: "lts/*"
31+
32+
- name: Install pnpm
33+
uses: pnpm/action-setup@v4
34+
with:
35+
version: 9
36+
37+
- name: Install dependencies
38+
run: pnpm install --frozen-lockfile --ignore-scripts
39+
40+
- name: Build
41+
run: pnpm run build
42+
43+
- name: Test
44+
run: pnpm run test
45+
46+
- name: Release
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
50+
GIT_AUTHOR_NAME: LSK.js
51+
GIT_AUTHOR_EMAIL: lskjsru@gmail.com
52+
GIT_COMMITTER_NAME: LSK.js
53+
GIT_COMMITTER_EMAIL: lskjsru@gmail.com
54+
run: |
55+
echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc && \
56+
pnpm -r --workspace-concurrency=1 exec -- npx --no-install semantic-release -e semantic-release-monorepo

.github/workflows/test.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Test
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
11+
strategy:
12+
matrix:
13+
node-version: [20, 22]
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Setup Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
24+
- name: Install pnpm
25+
uses: pnpm/action-setup@v4
26+
with:
27+
version: 9
28+
29+
- name: Install dependencies
30+
run: pnpm install --frozen-lockfile --ignore-scripts
31+
32+
- name: Build
33+
run: pnpm run build
34+
35+
- name: Test
36+
run: pnpm run test

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "4.28.3",
2+
"version": "4.40.0",
33
"npmClient": "pnpm",
44
"useWorkspaces": true,
55
"command": {

package.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,30 @@
2323
"uvu": "^0.5.6",
2424
"ycmd": "^0.26.0"
2525
},
26+
"/": "///////////========================/////////========================/////////========================/////////",
27+
"release": {
28+
"branches": [
29+
"main"
30+
],
31+
"plugins": [
32+
"@semantic-release/commit-analyzer",
33+
"@semantic-release/release-notes-generator",
34+
"@semantic-release/changelog",
35+
"@semantic-release/npm",
36+
"@semantic-release/github",
37+
[
38+
"@semantic-release/git",
39+
{
40+
"assets": [
41+
"package.json",
42+
"pnpm-lock.yaml",
43+
"CHANGELOG.md"
44+
],
45+
"message": "chore(release): 🎉 v${nextRelease.version}\n\n${nextRelease.notes}\n\n[skip ci]"
46+
}
47+
]
48+
]
49+
},
2650
"//": "///////////========================/////////========================/////////========================/////////",
2751
"prettier": "@lsk4/eslint-config/prettier",
2852
"eslintConfig": {

0 commit comments

Comments
 (0)