+
Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 14 additions & 20 deletions .github/workflows/webpack.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,23 @@
name: NodeJS with Webpack
name: Build and Deploy with Webpack

on:
push:
branches: [ "main" ]
branches: [main]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x, 22.x]

steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install Dependencies
run: npm install

- name: Build with Webpack
run: npx webpack
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: npm install --prefix=packages/hono-agents
- name: Build project
run: |
cd packages/hono-agents
npm run build
- name: Deploy to Vercel
run: npx vercel --prod --token=${{ secrets.VERCEL_TOKEN }}
Loading
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载