2020-01-13 16:33:01 +00:00
|
|
|
name: test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 2.x
|
|
|
|
pull_request:
|
|
|
|
branches:
|
2020-02-28 11:55:38 +00:00
|
|
|
- 2.x
|
2023-06-09 16:08:25 +00:00
|
|
|
- "!v[0-9]*"
|
|
|
|
|
|
|
|
# Remove default permissions of GITHUB_TOKEN for security
|
|
|
|
# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
|
|
|
|
permissions: {}
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
|
|
|
|
cancel-in-progress: ${{ github.event_name != 'push' }}
|
2020-01-13 16:33:01 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
setup:
|
|
|
|
runs-on: ${{ matrix.os }}
|
2020-06-30 18:12:22 +00:00
|
|
|
if: github.event_name == 'push' || !((github.base_ref == '2.x') && github.head_ref == 'dev')
|
2020-01-13 16:33:01 +00:00
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
# os: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
|
os: [ubuntu-latest]
|
|
|
|
|
|
|
|
steps:
|
2024-05-09 17:50:00 +00:00
|
|
|
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
|
2020-02-26 14:13:16 +00:00
|
|
|
with:
|
2020-03-03 13:05:52 +00:00
|
|
|
fetch-depth: 0 # All history
|
2023-06-05 18:24:32 +00:00
|
|
|
- run: corepack enable
|
2024-04-25 10:28:27 +00:00
|
|
|
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
|
2023-06-05 18:24:32 +00:00
|
|
|
with:
|
2023-10-16 21:23:38 +00:00
|
|
|
node-version: 18
|
2023-06-05 18:24:32 +00:00
|
|
|
cache: "yarn"
|
2020-03-03 13:05:52 +00:00
|
|
|
|
|
|
|
- name: fetch tags
|
|
|
|
run: git fetch --depth=1 origin "+refs/tags/*:refs/tags/*"
|
2020-01-13 16:33:01 +00:00
|
|
|
|
|
|
|
- name: install
|
2020-01-13 18:39:20 +00:00
|
|
|
run: yarn --check-files --frozen-lockfile --non-interactive
|
2020-01-13 16:33:01 +00:00
|
|
|
|
|
|
|
- name: cache workspace
|
2024-04-25 10:28:27 +00:00
|
|
|
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
|
2020-01-13 16:33:01 +00:00
|
|
|
with:
|
2020-10-29 22:31:28 +00:00
|
|
|
path: |
|
|
|
|
node_modules
|
|
|
|
packages/*/node_modules
|
2020-11-04 14:14:46 +00:00
|
|
|
distributions/*/node_modules
|
2020-10-29 22:31:28 +00:00
|
|
|
packages/*/dist
|
2023-10-16 21:23:38 +00:00
|
|
|
key: ${{ matrix.os }}-node-v18-nuxt-${{ github.sha }}
|
2020-01-13 16:33:01 +00:00
|
|
|
|
|
|
|
lint:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest]
|
|
|
|
|
|
|
|
steps:
|
2024-05-09 17:50:00 +00:00
|
|
|
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
|
2023-06-05 18:24:32 +00:00
|
|
|
- run: corepack enable
|
2024-04-25 10:28:27 +00:00
|
|
|
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
|
2020-01-13 16:33:01 +00:00
|
|
|
with:
|
2023-10-16 21:23:38 +00:00
|
|
|
node-version: 18
|
2023-06-05 18:24:32 +00:00
|
|
|
cache: "yarn"
|
2020-01-13 16:33:01 +00:00
|
|
|
|
|
|
|
- name: restore workspace cache
|
2024-04-25 10:28:27 +00:00
|
|
|
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
|
2020-01-13 16:33:01 +00:00
|
|
|
with:
|
2020-10-29 22:31:28 +00:00
|
|
|
path: |
|
|
|
|
node_modules
|
|
|
|
packages/*/node_modules
|
2020-11-04 14:14:46 +00:00
|
|
|
distributions/*/node_modules
|
2020-10-29 22:31:28 +00:00
|
|
|
packages/*/dist
|
2023-10-16 21:23:38 +00:00
|
|
|
key: ${{ matrix.os }}-node-v18-nuxt-${{ github.sha }}
|
2020-01-13 16:33:01 +00:00
|
|
|
|
|
|
|
- name: lint
|
|
|
|
run: yarn test:lint
|
2023-11-23 13:55:36 +00:00
|
|
|
needs: setup
|
|
|
|
|
|
|
|
typecheck:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest]
|
|
|
|
|
|
|
|
steps:
|
2024-05-09 17:50:00 +00:00
|
|
|
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
|
2023-11-23 13:55:36 +00:00
|
|
|
- run: corepack enable
|
2024-04-25 10:28:27 +00:00
|
|
|
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
|
2023-11-23 13:55:36 +00:00
|
|
|
with:
|
|
|
|
node-version: 18
|
|
|
|
cache: "yarn"
|
|
|
|
|
|
|
|
- name: restore workspace cache
|
2024-04-25 10:28:27 +00:00
|
|
|
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
|
2023-11-23 13:55:36 +00:00
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
node_modules
|
|
|
|
packages/*/node_modules
|
|
|
|
distributions/*/node_modules
|
|
|
|
packages/*/dist
|
|
|
|
key: ${{ matrix.os }}-node-v18-nuxt-${{ github.sha }}
|
2020-07-27 09:03:11 +00:00
|
|
|
|
|
|
|
- name: test types
|
|
|
|
run: yarn test:types
|
2023-09-04 08:14:10 +00:00
|
|
|
|
|
|
|
- name: test types with vue-tsc
|
|
|
|
run: yarn test:vue-types
|
2020-01-13 16:33:01 +00:00
|
|
|
needs: setup
|
|
|
|
|
|
|
|
audit:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest]
|
|
|
|
|
|
|
|
steps:
|
2024-05-09 17:50:00 +00:00
|
|
|
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
|
2023-06-05 18:24:32 +00:00
|
|
|
- run: corepack enable
|
2024-04-25 10:28:27 +00:00
|
|
|
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
|
2020-01-13 16:33:01 +00:00
|
|
|
with:
|
2023-10-16 21:23:38 +00:00
|
|
|
node-version: 18
|
2023-06-05 18:24:32 +00:00
|
|
|
cache: "yarn"
|
2020-01-13 16:33:01 +00:00
|
|
|
|
|
|
|
- name: restore workspace cache
|
2024-04-25 10:28:27 +00:00
|
|
|
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
|
2020-01-13 16:33:01 +00:00
|
|
|
with:
|
2020-10-29 22:31:28 +00:00
|
|
|
path: |
|
|
|
|
node_modules
|
|
|
|
packages/*/node_modules
|
2020-11-04 14:14:46 +00:00
|
|
|
distributions/*/node_modules
|
2020-10-29 22:31:28 +00:00
|
|
|
packages/*/dist
|
2023-10-16 21:23:38 +00:00
|
|
|
key: ${{ matrix.os }}-node-v18-nuxt-${{ github.sha }}
|
2020-01-13 16:33:01 +00:00
|
|
|
|
|
|
|
- name: audit
|
2020-01-14 22:15:45 +00:00
|
|
|
run: yarn run audit
|
2020-01-13 16:33:01 +00:00
|
|
|
needs: setup
|
|
|
|
|
2020-01-20 23:30:48 +00:00
|
|
|
test-unit:
|
2020-01-13 16:33:01 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
# os: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
|
os: [ubuntu-latest]
|
|
|
|
|
|
|
|
steps:
|
2024-05-09 17:50:00 +00:00
|
|
|
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
|
2023-06-05 18:24:32 +00:00
|
|
|
- run: corepack enable
|
2024-04-25 10:28:27 +00:00
|
|
|
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
|
2020-01-13 16:33:01 +00:00
|
|
|
with:
|
2023-10-16 21:23:38 +00:00
|
|
|
node-version: 18
|
2023-06-05 18:24:32 +00:00
|
|
|
cache: "yarn"
|
2020-01-13 16:33:01 +00:00
|
|
|
|
|
|
|
- name: restore workspace cache
|
2024-04-25 10:28:27 +00:00
|
|
|
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
|
2020-01-13 16:33:01 +00:00
|
|
|
with:
|
2020-10-29 22:31:28 +00:00
|
|
|
path: |
|
|
|
|
node_modules
|
|
|
|
packages/*/node_modules
|
2020-11-04 14:14:46 +00:00
|
|
|
distributions/*/node_modules
|
2020-10-29 22:31:28 +00:00
|
|
|
packages/*/dist
|
2023-10-16 21:23:38 +00:00
|
|
|
key: ${{ matrix.os }}-node-v18-nuxt-${{ github.sha }}
|
2020-01-13 16:33:01 +00:00
|
|
|
|
2020-01-20 23:30:48 +00:00
|
|
|
- name: test unit
|
|
|
|
run: yarn test:unit --coverage
|
2020-01-13 16:33:01 +00:00
|
|
|
|
2020-01-20 23:30:48 +00:00
|
|
|
- name: codecov
|
2024-02-01 12:03:46 +00:00
|
|
|
uses: codecov/codecov-action@v4
|
2020-01-13 16:33:01 +00:00
|
|
|
with:
|
2020-01-20 23:30:48 +00:00
|
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
|
|
flags: unittests
|
2020-01-13 16:33:01 +00:00
|
|
|
needs: setup
|
|
|
|
|
2020-01-20 23:30:48 +00:00
|
|
|
build:
|
2020-01-13 16:33:01 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-01-20 23:30:48 +00:00
|
|
|
# os: [ubuntu-latest, macos-latest, windows-latest]
|
2020-01-13 16:33:01 +00:00
|
|
|
os: [ubuntu-latest]
|
|
|
|
|
2020-01-31 14:28:27 +00:00
|
|
|
env:
|
|
|
|
NODE_OPTIONS: "--max_old_space_size=4096"
|
|
|
|
|
2020-01-13 16:33:01 +00:00
|
|
|
steps:
|
2024-05-09 17:50:00 +00:00
|
|
|
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
|
2023-06-05 18:24:32 +00:00
|
|
|
- run: corepack enable
|
2024-04-25 10:28:27 +00:00
|
|
|
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
|
2020-01-13 16:33:01 +00:00
|
|
|
with:
|
2023-10-16 21:23:38 +00:00
|
|
|
node-version: 18
|
2023-06-05 18:24:32 +00:00
|
|
|
cache: "yarn"
|
2020-01-13 16:33:01 +00:00
|
|
|
|
|
|
|
- name: restore workspace cache
|
2024-04-25 10:28:27 +00:00
|
|
|
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
|
2020-01-13 16:33:01 +00:00
|
|
|
with:
|
2020-10-29 22:31:28 +00:00
|
|
|
path: |
|
|
|
|
node_modules
|
|
|
|
packages/*/node_modules
|
2020-11-04 14:14:46 +00:00
|
|
|
distributions/*/node_modules
|
2020-10-29 22:31:28 +00:00
|
|
|
packages/*/dist
|
2023-10-16 21:23:38 +00:00
|
|
|
key: ${{ matrix.os }}-node-v18-nuxt-${{ github.sha }}
|
2020-01-13 16:33:01 +00:00
|
|
|
|
2020-01-20 23:30:48 +00:00
|
|
|
- name: build
|
|
|
|
run: yarn test:fixtures -i
|
|
|
|
|
2021-02-07 22:25:51 +00:00
|
|
|
- name: Save fixtures
|
2024-04-25 10:28:27 +00:00
|
|
|
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
2020-01-13 16:33:01 +00:00
|
|
|
with:
|
2023-10-16 21:23:38 +00:00
|
|
|
name: fixtures-${{ matrix.os }}-node-v18
|
2020-01-13 16:33:01 +00:00
|
|
|
path: test/fixtures
|
2020-01-20 23:30:48 +00:00
|
|
|
needs: setup
|
2020-01-13 16:33:01 +00:00
|
|
|
|
2020-01-20 23:30:48 +00:00
|
|
|
lint-app:
|
2020-01-13 16:33:01 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest]
|
|
|
|
|
|
|
|
steps:
|
2024-05-09 17:50:00 +00:00
|
|
|
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
|
2023-06-05 18:24:32 +00:00
|
|
|
- run: corepack enable
|
2024-04-25 10:28:27 +00:00
|
|
|
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
|
2020-01-13 16:33:01 +00:00
|
|
|
with:
|
2023-10-16 21:23:38 +00:00
|
|
|
node-version: 18
|
2023-06-05 18:24:32 +00:00
|
|
|
cache: "yarn"
|
2020-01-13 16:33:01 +00:00
|
|
|
|
|
|
|
- name: restore workspace cache
|
2024-04-25 10:28:27 +00:00
|
|
|
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
|
2020-01-13 16:33:01 +00:00
|
|
|
with:
|
2020-10-29 22:31:28 +00:00
|
|
|
path: |
|
|
|
|
node_modules
|
|
|
|
packages/*/node_modules
|
2020-11-04 14:14:46 +00:00
|
|
|
distributions/*/node_modules
|
2020-10-29 22:31:28 +00:00
|
|
|
packages/*/dist
|
2023-10-16 21:23:38 +00:00
|
|
|
key: ${{ matrix.os }}-node-v18-nuxt-${{ github.sha }}
|
2020-01-13 16:33:01 +00:00
|
|
|
|
|
|
|
- name: restore fixtures
|
2024-05-07 20:56:17 +00:00
|
|
|
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
2020-01-13 16:33:01 +00:00
|
|
|
with:
|
2023-10-16 21:23:38 +00:00
|
|
|
name: fixtures-${{ matrix.os }}-node-v18
|
2020-01-13 16:33:01 +00:00
|
|
|
path: test/fixtures
|
|
|
|
|
2020-01-20 23:30:48 +00:00
|
|
|
- name: lint app
|
|
|
|
run: yarn lint:app
|
2020-01-13 16:33:01 +00:00
|
|
|
needs: build
|
|
|
|
|
2020-01-20 23:30:48 +00:00
|
|
|
test-dev:
|
2020-01-13 16:33:01 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
# os: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
|
os: [ubuntu-latest]
|
|
|
|
|
|
|
|
steps:
|
2024-05-09 17:50:00 +00:00
|
|
|
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
|
2023-06-05 18:24:32 +00:00
|
|
|
- run: corepack enable
|
2024-04-25 10:28:27 +00:00
|
|
|
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
|
2020-01-13 16:33:01 +00:00
|
|
|
with:
|
2023-10-16 21:23:38 +00:00
|
|
|
node-version: 18
|
2023-06-05 18:24:32 +00:00
|
|
|
cache: "yarn"
|
2020-01-13 16:33:01 +00:00
|
|
|
|
|
|
|
- name: restore workspace cache
|
2024-04-25 10:28:27 +00:00
|
|
|
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
|
2020-01-13 16:33:01 +00:00
|
|
|
with:
|
2020-10-29 22:31:28 +00:00
|
|
|
path: |
|
|
|
|
node_modules
|
|
|
|
packages/*/node_modules
|
2020-11-04 14:14:46 +00:00
|
|
|
distributions/*/node_modules
|
2020-10-29 22:31:28 +00:00
|
|
|
packages/*/dist
|
2023-10-16 21:23:38 +00:00
|
|
|
key: ${{ matrix.os }}-node-v18-nuxt-${{ github.sha }}
|
2020-01-13 16:33:01 +00:00
|
|
|
|
|
|
|
- name: restore fixtures
|
2024-05-07 20:56:17 +00:00
|
|
|
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
2020-01-13 16:33:01 +00:00
|
|
|
with:
|
2023-10-16 21:23:38 +00:00
|
|
|
name: fixtures-${{ matrix.os }}-node-v18
|
2020-01-13 16:33:01 +00:00
|
|
|
path: test/fixtures
|
|
|
|
|
2020-01-20 23:30:48 +00:00
|
|
|
- name: test dev
|
2021-02-07 22:25:51 +00:00
|
|
|
run: yarn test:dev
|
2020-01-13 16:33:01 +00:00
|
|
|
needs: build
|
|
|
|
|
|
|
|
test-e2e:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
# os: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
|
os: [ubuntu-latest]
|
|
|
|
|
|
|
|
steps:
|
2024-05-09 17:50:00 +00:00
|
|
|
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
|
2023-06-05 18:24:32 +00:00
|
|
|
- run: corepack enable
|
2024-04-25 10:28:27 +00:00
|
|
|
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
|
2020-01-13 16:33:01 +00:00
|
|
|
with:
|
2023-10-16 21:23:38 +00:00
|
|
|
node-version: 18
|
2023-06-05 18:24:32 +00:00
|
|
|
cache: "yarn"
|
2020-01-13 16:33:01 +00:00
|
|
|
|
|
|
|
- name: restore workspace cache
|
2024-04-25 10:28:27 +00:00
|
|
|
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
|
2020-01-13 16:33:01 +00:00
|
|
|
with:
|
2020-10-29 22:31:28 +00:00
|
|
|
path: |
|
|
|
|
node_modules
|
|
|
|
packages/*/node_modules
|
2020-11-04 14:14:46 +00:00
|
|
|
distributions/*/node_modules
|
2020-10-29 22:31:28 +00:00
|
|
|
packages/*/dist
|
2023-10-16 21:23:38 +00:00
|
|
|
key: ${{ matrix.os }}-node-v18-nuxt-${{ github.sha }}
|
2020-01-13 16:33:01 +00:00
|
|
|
|
|
|
|
- name: restore fixtures
|
2024-05-07 20:56:17 +00:00
|
|
|
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
2020-01-13 16:33:01 +00:00
|
|
|
with:
|
2023-10-16 21:23:38 +00:00
|
|
|
name: fixtures-${{ matrix.os }}-node-v18
|
2020-01-13 16:33:01 +00:00
|
|
|
path: test/fixtures
|
|
|
|
|
|
|
|
- name: test e2e
|
|
|
|
run: yarn test:e2e
|
|
|
|
needs: build
|
2020-01-20 20:50:07 +00:00
|
|
|
|
|
|
|
release-commit:
|
2023-06-09 16:08:25 +00:00
|
|
|
permissions:
|
|
|
|
id-token: write
|
2020-01-20 20:50:07 +00:00
|
|
|
if: github.event_name == 'push' && contains(github.event.head_commit.message, '[release]')
|
2020-01-20 21:19:10 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
2020-01-20 20:50:07 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest]
|
|
|
|
|
|
|
|
steps:
|
2024-05-09 17:50:00 +00:00
|
|
|
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
|
2021-01-13 12:52:45 +00:00
|
|
|
with:
|
2023-01-19 15:03:28 +00:00
|
|
|
ref: "refs/heads/dev"
|
2021-01-13 12:52:45 +00:00
|
|
|
fetch-depth: 0 # All history
|
|
|
|
|
|
|
|
- name: fetch tags
|
|
|
|
run: git fetch --depth=1 origin "+refs/tags/*:refs/tags/*"
|
2020-12-17 12:00:09 +00:00
|
|
|
|
2020-01-20 20:50:07 +00:00
|
|
|
- name: restore workspace cache
|
2024-04-25 10:28:27 +00:00
|
|
|
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
|
2020-01-20 20:50:07 +00:00
|
|
|
with:
|
2020-10-29 22:31:28 +00:00
|
|
|
path: |
|
|
|
|
node_modules
|
|
|
|
packages/*/node_modules
|
2020-11-04 14:14:46 +00:00
|
|
|
distributions/*/node_modules
|
2020-10-29 22:31:28 +00:00
|
|
|
packages/*/dist
|
2023-10-16 21:23:38 +00:00
|
|
|
key: ${{ matrix.os }}-node-v18-nuxt-${{ github.sha }}
|
2020-01-20 20:50:07 +00:00
|
|
|
|
2024-04-25 10:28:27 +00:00
|
|
|
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
|
2020-01-20 21:19:10 +00:00
|
|
|
with:
|
2023-10-16 21:23:38 +00:00
|
|
|
node-version: 18
|
2023-06-05 18:24:32 +00:00
|
|
|
cache: "yarn"
|
2023-01-19 15:03:28 +00:00
|
|
|
registry-url: "https://registry.npmjs.org"
|
2020-01-20 21:19:10 +00:00
|
|
|
|
2020-01-20 20:50:07 +00:00
|
|
|
- name: bump version
|
2021-01-13 11:10:53 +00:00
|
|
|
run: yarn lerna version --yes --no-changelog --no-git-tag-version --no-push --force-publish "*" --loglevel verbose
|
2020-01-20 20:50:07 +00:00
|
|
|
|
|
|
|
- name: build
|
|
|
|
run: PACKAGE_SUFFIX=edge yarn build
|
|
|
|
|
|
|
|
- name: publish
|
|
|
|
run: |
|
2020-02-26 12:50:01 +00:00
|
|
|
./scripts/workspace-run npm publish $tag -q
|
2020-01-20 20:50:07 +00:00
|
|
|
env:
|
|
|
|
ref: ${{ github.ref }}
|
|
|
|
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
|
2023-06-09 16:08:25 +00:00
|
|
|
NPM_CONFIG_PROVENANCE: true
|
2020-01-20 20:50:07 +00:00
|
|
|
needs: [lint-app, test-dev, test-unit, test-e2e]
|