mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-24 14:45:15 +00:00
1f8aac0160
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel Roe <daniel@roe.dev>
62 lines
1.8 KiB
YAML
62 lines
1.8 KiB
YAML
name: nuxt2-nightly
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '0 0 * * *'
|
|
|
|
# https://github.com/vitejs/vite/blob/main/.github/workflows/ci.yml
|
|
env:
|
|
# 7 GiB by default on GitHub, setting to 6 GiB
|
|
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
|
|
NODE_OPTIONS: --max-old-space-size=6144
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
nightly:
|
|
if: github.repository_owner == 'nuxt'
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
id-token: write
|
|
steps:
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
with:
|
|
ref: '2.x'
|
|
fetch-depth: 0 # All history
|
|
- name: fetch tags
|
|
run: git fetch --depth=1 origin "+refs/tags/*:refs/tags/*"
|
|
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
|
|
with:
|
|
node-version: 18
|
|
registry-url: 'https://registry.npmjs.org'
|
|
- name: install
|
|
run: yarn --check-files --frozen-lockfile --non-interactive
|
|
- name: lint
|
|
run: yarn test:lint
|
|
- name: audit
|
|
run: yarn run audit
|
|
- name: build
|
|
run: yarn test:fixtures -i
|
|
- name: lint app
|
|
run: yarn lint:app
|
|
- name: test types
|
|
run: yarn test:types
|
|
- name: test dev
|
|
run: yarn test:dev
|
|
- name: test unit
|
|
run: yarn test:unit
|
|
- name: test e2e
|
|
run: yarn test:e2e
|
|
- name: bump version
|
|
run: yarn lerna version --yes --no-changelog --no-git-tag-version --no-push --force-publish "*" --loglevel verbose
|
|
- name: build
|
|
run: PACKAGE_SUFFIX=edge yarn build
|
|
- name: publish
|
|
run: ./scripts/workspace-run npm publish -q
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
|
|
NPM_CONFIG_PROVENANCE: true
|
|
|