Skip to content

Commit e00b7e6

Browse files
committed
update workflows
1 parent 7a0aa14 commit e00b7e6

File tree

3 files changed

+32
-4
lines changed

3 files changed

+32
-4
lines changed

.github/workflows/check.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,13 @@ jobs:
2121

2222
- name: Install dependencies
2323
run: npm ci
24-
env:
25-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2624

2725
- name: Run build
2826
run: npm run build
2927

3028
- name: Check format
3129
if: always()
32-
run: npm run formatcheck
30+
run: npm run format:check
3331

3432
- name: Check lint
3533
if: always()

.github/workflows/release.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
- name: Set up Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
# use file .node-version to determine node version
19+
node-version-file: .node-version
20+
21+
- name: Install dependencies
22+
run: npm ci
23+
24+
- name: Release
25+
run: npm run ci:release
26+
env:
27+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
"start": "echo 'use \"npm run build\" from main directory and then \"npm start\" in the playground package'",
1111
"format": "prettier --write .",
1212
"format:check": "prettier --check .",
13-
"typecheck": "lerna run typecheck"
13+
"typecheck": "lerna run typecheck",
14+
"increase-version": "lerna version",
15+
"release": "lerna publish from-package",
16+
"ci:release": "npm run build && lerna publish from-package --yes"
1417
},
1518
"keywords": [],
1619
"author": "",

0 commit comments

Comments
 (0)