+++ /dev/null
-name: canary minor release
-on:
- # Runs every Monday at 1 AM UTC (9:00 AM in Singapore)
- schedule:
- - cron: 0 1 * * MON
- workflow_dispatch:
-
-jobs:
- canary:
- # prevents this action from running on forks
- if: github.repository == 'vuejs/core'
- runs-on: ubuntu-latest
- environment: Release
- steps:
- - uses: actions/checkout@v4
- with:
- ref: minor
-
- - name: Install pnpm
- uses: pnpm/action-setup@v2
-
- - name: Set node version to 18
- uses: actions/setup-node@v4
- with:
- node-version: 18
- registry-url: 'https://registry.npmjs.org'
- cache: 'pnpm'
-
- - run: pnpm install
-
- - run: pnpm release --canary --tag minor
- env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
+++ /dev/null
-name: canary release
-on:
- # Runs every Monday at 1 AM UTC (9:00 AM in Singapore)
- schedule:
- - cron: 0 1 * * MON
- workflow_dispatch:
-
-jobs:
- canary:
- # prevents this action from running on forks
- if: github.repository == 'vuejs/core'
- runs-on: ubuntu-latest
- environment: Release
- steps:
- - uses: actions/checkout@v4
-
- - name: Install pnpm
- uses: pnpm/action-setup@v2
-
- - name: Install Node.js
- uses: actions/setup-node@v4
- with:
- node-version-file: '.node-version'
- registry-url: 'https://registry.npmjs.org'
- cache: 'pnpm'
-
- - run: pnpm install
-
- - run: pnpm release --canary
- env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Run unit tests
run: pnpm run test-unit
- unit-test-windows:
- runs-on: windows-latest
- if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
- env:
- PUPPETEER_SKIP_DOWNLOAD: 'true'
- steps:
- - uses: actions/checkout@v4
-
- - name: Install pnpm
- uses: pnpm/action-setup@v2
-
- - name: Install Node.js
- uses: actions/setup-node@v4
- with:
- node-version-file: '.node-version'
- cache: 'pnpm'
-
- - run: pnpm install
-
- - name: Run compiler unit tests
- run: pnpm run test-unit compiler
-
- - name: Run ssr unit tests
- run: pnpm run test-unit server-renderer
-
- e2e-test:
- runs-on: ubuntu-latest
- if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
- steps:
- - uses: actions/checkout@v4
-
- - name: Setup cache for Chromium binary
- uses: actions/cache@v3
- with:
- path: ~/.cache/puppeteer
- key: chromium-${{ hashFiles('pnpm-lock.yaml') }}
-
- - name: Install pnpm
- uses: pnpm/action-setup@v2
-
- - name: Install Node.js
- uses: actions/setup-node@v4
- with:
- node-version-file: '.node-version'
- cache: 'pnpm'
-
- - run: pnpm install
- - run: node node_modules/puppeteer/install.mjs
-
- - name: Run e2e tests
- run: pnpm run test-e2e
-
lint-and-test-dts:
runs-on: ubuntu-latest
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository