mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-10 21:48:48 +08:00
chore: update workflow
This commit is contained in:
@@ -2,9 +2,9 @@ name: Build Pathfinder Community Version
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [pathfinder]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [pathfinder]
|
||||||
|
|
||||||
# Cancels all previous workflow runs for pull requests that have not completed.
|
# Cancels all previous workflow runs for pull requests that have not completed.
|
||||||
# See https://docs.github.com/en/actions/using-jobs/using-concurrency
|
# See https://docs.github.com/en/actions/using-jobs/using-concurrency
|
||||||
@@ -16,7 +16,7 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Lint nad Build
|
name: Lint and Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -70,7 +70,7 @@ jobs:
|
|||||||
push_to_registry:
|
push_to_registry:
|
||||||
# See https://docs.github.com/en/actions/publishing-packages/publishing-docker-images
|
# See https://docs.github.com/en/actions/publishing-packages/publishing-docker-images
|
||||||
name: Push Docker image to Docker Hub
|
name: Push Docker image to Docker Hub
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/pathfinder'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build
|
||||||
|
|
||||||
@@ -80,7 +80,7 @@ jobs:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
IMAGE_NAME: ${{ github.repository }}-community
|
IMAGE_NAME: affine-pathfinder-community
|
||||||
IMAGE_TAG: canary-${{ github.sha }}
|
IMAGE_TAG: canary-${{ github.sha }}
|
||||||
IMAGE_TAG_LATEST: nightly-latest
|
IMAGE_TAG_LATEST: nightly-latest
|
||||||
|
|
||||||
|
|||||||
@@ -2,9 +2,9 @@ name: Build Pathfinder LiveDemo Version
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [pathfinder]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [pathfinder]
|
||||||
|
|
||||||
# Cancels all previous workflow runs for pull requests that have not completed.
|
# Cancels all previous workflow runs for pull requests that have not completed.
|
||||||
# See https://docs.github.com/en/actions/using-jobs/using-concurrency
|
# See https://docs.github.com/en/actions/using-jobs/using-concurrency
|
||||||
@@ -16,7 +16,7 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Lint nad Build
|
name: Lint and Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -32,7 +32,7 @@ jobs:
|
|||||||
registry-url: https://npm.pkg.github.com
|
registry-url: https://npm.pkg.github.com
|
||||||
scope: '@toeverything'
|
scope: '@toeverything'
|
||||||
cache: 'pnpm'
|
cache: 'pnpm'
|
||||||
|
|
||||||
- run: node scripts/module-resolve/ci.js
|
- run: node scripts/module-resolve/ci.js
|
||||||
|
|
||||||
- name: Restore cache
|
- name: Restore cache
|
||||||
@@ -72,7 +72,7 @@ jobs:
|
|||||||
push_to_registry:
|
push_to_registry:
|
||||||
# See https://docs.github.com/en/actions/publishing-packages/publishing-docker-images
|
# See https://docs.github.com/en/actions/publishing-packages/publishing-docker-images
|
||||||
name: Push Docker image to Docker Hub
|
name: Push Docker image to Docker Hub
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/pathfinder'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build
|
||||||
|
|
||||||
@@ -82,7 +82,7 @@ jobs:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
IMAGE_NAME: ${{ github.repository }}
|
IMAGE_NAME: affine-pathfinder
|
||||||
IMAGE_TAG: canary-${{ github.sha }}
|
IMAGE_TAG: canary-${{ github.sha }}
|
||||||
IMAGE_TAG_LATEST: nightly-latest
|
IMAGE_TAG_LATEST: nightly-latest
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Lint nad Build
|
name: Lint and Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -34,7 +34,7 @@ jobs:
|
|||||||
registry-url: https://npm.pkg.github.com
|
registry-url: https://npm.pkg.github.com
|
||||||
scope: '@toeverything'
|
scope: '@toeverything'
|
||||||
cache: 'pnpm'
|
cache: 'pnpm'
|
||||||
|
|
||||||
- run: node scripts/module-resolve/ci.js
|
- run: node scripts/module-resolve/ci.js
|
||||||
|
|
||||||
- name: Restore cache
|
- name: Restore cache
|
||||||
@@ -83,7 +83,7 @@ jobs:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
IMAGE_NAME: ${{ github.repository }}-testing
|
IMAGE_NAME: affine-pathfinder-testing
|
||||||
IMAGE_TAG: canary-${{ github.sha }}
|
IMAGE_TAG: canary-${{ github.sha }}
|
||||||
IMAGE_TAG_LATEST: nightly-latest
|
IMAGE_TAG_LATEST: nightly-latest
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pathfinder/app",
|
"name": "@pathfinder/app",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
|
|||||||
@@ -15,10 +15,9 @@
|
|||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/toeverything/AFFINE-pathfinder.git"
|
"url": "git+https://github.com/toeverything/AFFINE.git"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"next": "^12.3.1",
|
"next": "^12.3.1",
|
||||||
|
|||||||
Reference in New Issue
Block a user