Skip to content

Commit

Permalink
ci: cleanup & fix repo
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Sep 17, 2024
1 parent 594cb14 commit daf098e
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 181 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,3 @@ jobs:
test:
if: ${{ ! startsWith(github.event.head_commit.message, 'release:') && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository) }}
uses: ./.github/workflows/test.yml

continuous-release:
if: github.repository == 'vuejs/core'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'

- name: Install deps
run: pnpm install

- name: Build
run: pnpm build --withTypes

- name: Release
run: pnpx pkg-pr-new publish --compact --pnpm './packages/*'
2 changes: 1 addition & 1 deletion .github/workflows/close-cant-reproduce-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions:

jobs:
close-issues:
if: github.repository == 'vuejs/core'
if: github.repository == 'vuejs/core-vapor'
runs-on: ubuntu-latest
steps:
- name: can't reproduce
Expand Down
90 changes: 0 additions & 90 deletions .github/workflows/ecosystem-ci-trigger.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/lock-closed-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions:

jobs:
action:
if: github.repository == 'vuejs/core'
if: github.repository == 'vuejs/core-vapor'
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v5
Expand Down
55 changes: 0 additions & 55 deletions .github/workflows/release.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/size-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ env:

jobs:
upload:
if: github.repository == 'vuejs/core'
if: github.repository == 'vuejs/core-vapor'
runs-on: ubuntu-latest

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/size-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
size-report:
runs-on: ubuntu-latest
if: >
github.repository == 'vuejs/core' &&
github.repository == 'vuejs/core-vapor' &&
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion == 'success'
steps:
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,19 @@ jobs:
- name: Run type declaration tests
run: pnpm run test-dts

release:
continuous-release:
if: github.repository == 'vuejs/core-vapor'
runs-on: ubuntu-latest
needs: [unit-test, lint-and-test-dts]
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4.0.0
uses: pnpm/action-setup@v4

- name: Install Node.js
uses: actions/setup-node@v4
Expand All @@ -73,10 +75,11 @@ jobs:
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'

- run: pnpm install
- name: Install deps
run: pnpm install

- name: Build
run: pnpm build --withTypes

- name: Publish
run: pnpm dlx pkg-pr-new@0.0 publish './packages/*' --template './playground' --pnpm
- name: Release
run: pnpx pkg-pr-new publish --pnpm './packages/*' --template './playground'

0 comments on commit daf098e

Please sign in to comment.