-
-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: release test with changeset on ci
- Loading branch information
Showing
10 changed files
with
189 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@alova/lrucache': patch | ||
'@alova/shared': patch | ||
--- | ||
|
||
Fix some issues. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# See https://github.com/actions/labeler | ||
|
||
'pkg: example': | ||
- examples/**/* | ||
|
||
'🚨 action': | ||
- .github/workflows/** | ||
|
||
'pkg: astro': | ||
- packages/astro/** | ||
|
||
'pkg: create-astro': | ||
- packages/create-astro/** | ||
|
||
'pkg: db': | ||
- packages/integrations/db/** | ||
|
||
'feat: markdown': | ||
- packages/markdown/** | ||
|
||
'pkg: integration': | ||
- packages/integrations/** | ||
|
||
'pkg: lit': | ||
- packages/integrations/lit/** | ||
|
||
'pkg: preact': | ||
- packages/integrations/preact/** | ||
|
||
'pkg: react': | ||
- packages/integrations/react/** | ||
|
||
'pkg: solid': | ||
- packages/integrations/solid/** | ||
|
||
'pkg: svelte': | ||
- packages/integrations/svelte/** | ||
|
||
'pkg: vue': | ||
- packages/integrations/vue/** | ||
|
||
'docs pr': | ||
- packages/astro/src/@types/astro.ts | ||
- packages/astro/src/core/errors/errors-data.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
name: pull_request check | ||
|
||
# trigger condition: pull_request to any branch | ||
on: | ||
push: | ||
branches: | ||
- alpha | ||
|
||
jobs: | ||
quality: | ||
# server: ubuntu-latest | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Setup PNPM | ||
uses: pnpm/action-setup@v3 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
registry-url: 'https://registry.npmjs.org' | ||
cache: 'pnpm' | ||
|
||
- name: Install deps | ||
run: pnpm install | ||
|
||
- name: Lint check | ||
run: pnpm run lint | ||
|
||
- name: Format | ||
run: pnpm run format | ||
|
||
release: | ||
runs-on: ubuntu-latest | ||
needs: [quality] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Setup PNPM | ||
uses: pnpm/action-setup@v3 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
registry-url: 'https://registry.npmjs.org' | ||
cache: 'pnpm' | ||
|
||
- name: Install deps | ||
run: pnpm install | ||
|
||
# - name: Test SSR | ||
# run: npm run test:node | ||
|
||
# This has contained test and upload coverage | ||
# - name: Coverage | ||
# run: npm run test:coveralls | ||
|
||
- name: Create Release Pull Request or Publish | ||
id: changesets | ||
uses: changesets/action@v1 | ||
with: | ||
# Note: pnpm install after versioning is necessary to refresh lockfile | ||
version: pnpm run changeset:version | ||
publish: pnpm run release | ||
commit: '[ci] release' | ||
title: '[ci] release' | ||
env: | ||
# Needs access to push to main | ||
GITHUB_TOKEN: ${{ secrets.NPM_ALOVA_PUBLISH_TOKEN }} | ||
# Needs access to publish to npm | ||
NPM_TOKEN: ${{ secrets.ALOVA_GITHUB_TOKEN }} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Automatically labels PRs based on the configuration file | ||
# you are probably looking for 👉 `.github/labeler.yml` | ||
name: Label PRs | ||
|
||
on: | ||
- pull_request_target | ||
|
||
jobs: | ||
triage: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/labeler@v4 | ||
with: | ||
repo-token: '${{ secrets.GITHUB_TOKEN }}' | ||
sync-labels: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: pull_request check | ||
|
||
# trigger condition: pull_request to any branch | ||
on: | ||
pull_request: | ||
paths-ignore: | ||
- '.vscode/**' | ||
- '**/*.md' | ||
- '.github/**' | ||
|
||
jobs: | ||
quality: | ||
# server: ubuntu-latest | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Setup PNPM | ||
uses: pnpm/action-setup@v3 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
registry-url: 'https://registry.npmjs.org' | ||
cache: 'pnpm' | ||
|
||
- name: Install deps | ||
run: pnpm install | ||
|
||
- name: Lint check | ||
run: pnpm run lint | ||
|
||
- name: Unit tests | ||
run: pnpm run test | ||
|
||
- name: Format | ||
run: pnpm run format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,6 @@ on: | |
push: | ||
branches: | ||
- main | ||
- alpha | ||
- beta | ||
pull_request: | ||
branches: '*' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters