Skip to content

Commit

Permalink
chore: update ci pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
thezzisu committed Dec 20, 2023
1 parent 1fb9092 commit 2c95361
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,36 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(corepack yarn config get cacheFolder)" >> $GITHUB_OUTPUT

- uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: corepack yarn

- name: Check version policies
if: github.event_name == 'pull_request'
run: corepack yarn version check

- name: Build packages
run: corepack yarn workspaces foreach --exclude @aoi-js/frontend -t run build

- name: Run checks
run: corepack yarn all:check
4 changes: 2 additions & 2 deletions scripts/publish.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ for (const { ident } of items) {

if (shouldCommit) {
if (process.env.CI) {
await $`git config user.name github-actions`
await $`git config user.email [email protected]`
await $`git config user.name aoi-js-bot`
await $`git config user.email [email protected]`
await $`git add .`
await $`git commit -m "chore: apply versions and publish"`
await $`git push`
Expand Down

0 comments on commit 2c95361

Please sign in to comment.