2023-02-02 00:36:51 +00:00
|
|
|
name: nuxt2-nightly
|
|
|
|
|
|
|
|
on:
|
2023-02-02 11:02:00 +00:00
|
|
|
workflow_dispatch:
|
2023-02-02 00:36:51 +00:00
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * *'
|
|
|
|
|
2023-05-15 12:08:36 +00:00
|
|
|
# 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
|
|
|
|
|
2023-06-02 17:14:21 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2023-02-02 00:36:51 +00:00
|
|
|
jobs:
|
|
|
|
nightly:
|
2023-03-01 09:39:58 +00:00
|
|
|
if: github.repository_owner == 'nuxt'
|
2023-02-02 00:36:51 +00:00
|
|
|
runs-on: ubuntu-latest
|
2023-04-24 22:55:57 +00:00
|
|
|
permissions:
|
|
|
|
id-token: write
|
2023-02-02 00:36:51 +00:00
|
|
|
steps:
|
2023-06-02 17:14:21 +00:00
|
|
|
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
|
2023-02-02 00:36:51 +00:00
|
|
|
with:
|
2023-02-02 11:02:00 +00:00
|
|
|
ref: '2.x'
|
2023-02-02 00:36:51 +00:00
|
|
|
fetch-depth: 0 # All history
|
|
|
|
- name: fetch tags
|
|
|
|
run: git fetch --depth=1 origin "+refs/tags/*:refs/tags/*"
|
2023-06-02 17:14:21 +00:00
|
|
|
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
|
2023-02-02 00:36:51 +00:00
|
|
|
with:
|
2023-05-03 08:51:00 +00:00
|
|
|
node-version: 16
|
2023-02-02 00:36:51 +00:00
|
|
|
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}}
|
2023-04-24 22:55:57 +00:00
|
|
|
NPM_CONFIG_PROVENANCE: true
|
2023-02-02 00:36:51 +00:00
|
|
|
|