Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki-js committed Aug 2, 2024
1 parent 7a0aa14 commit e00b7e6
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,13 @@ jobs:

- name: Install dependencies
run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Run build
run: npm run build

- name: Check format
if: always()
run: npm run formatcheck
run: npm run format:check

- name: Check lint
if: always()
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release
on:
workflow_dispatch:
push:
branches:
- main

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
# use file .node-version to determine node version
node-version-file: .node-version

- name: Install dependencies
run: npm ci

- name: Release
run: npm run ci:release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
"start": "echo 'use \"npm run build\" from main directory and then \"npm start\" in the playground package'",
"format": "prettier --write .",
"format:check": "prettier --check .",
"typecheck": "lerna run typecheck"
"typecheck": "lerna run typecheck",
"increase-version": "lerna version",
"release": "lerna publish from-package",
"ci:release": "npm run build && lerna publish from-package --yes"
},
"keywords": [],
"author": "",
Expand Down

0 comments on commit e00b7e6

Please sign in to comment.