Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
samchon committed Feb 24, 2025
1 parent 96b7c36 commit 35a6068
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 29 deletions.
43 changes: 17 additions & 26 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,11 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: lts/*
- uses: actions/cache@v4
- uses: pnpm/action-setup@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm install --force
- run: npm run build
version: 8
- run: pnpm install --force
- run: pnpm run build
- name: remove `private=true` from package.json
run: |
jq 'del(.private)' package.json > package.json.tmp
Expand All @@ -49,9 +45,12 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: lts/*
- run: npm install --force
- run: npm run eslint
- run: npm run prettier
- uses: pnpm/action-setup@v2
with:
version: 8
- run: pnpm install --force
- run: pnpm run eslint
- run: pnpm run prettier

NodeJS:
runs-on: ubuntu-latest
Expand All @@ -63,13 +62,9 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v4
- uses: pnpm/action-setup@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-node-
version: 8
- run: npm install --force
- run: npm run build
- run: npm run test
Expand All @@ -84,16 +79,12 @@ jobs:
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- uses: actions/cache@v4
- uses: pnpm/action-setup@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm install --force
- run: npm run build
- run: npm run test:bun
version: 8
- run: pnpm install --force
- run: pnpm run build
- run: pnpm run test:bun

action-timeline:
needs:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ jobs:
with:
node-version: 20.x
registry-url: https://registry.npmjs.org/
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Install dependencies
run: npm install
run: pnpm install
- name: Publish to npm
run: npm run package:latest
run: pnpm run package:latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH }}
- name: Website Setup
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20.x
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Root
run: npm install
run: pnpm install
- name: Build
working-directory: website
run: |
Expand Down

0 comments on commit 35a6068

Please sign in to comment.