mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
fix: updated release flow to match the current flows (#10562)
* fix: updated release flow to match the current flows * chore: remove un-needed dep review
This commit is contained in:
@@ -44,11 +44,14 @@ jobs:
|
|||||||
run: npm run test:vitest:unit
|
run: npm run test:vitest:unit
|
||||||
- name: Run browser tests
|
- name: Run browser tests
|
||||||
run: npm run test:vitest:browser:headless
|
run: npm run test:vitest:browser:headless
|
||||||
- name: Upload build artifact
|
- name: Pack npm tarball
|
||||||
|
run: npm pack
|
||||||
|
- name: Upload npm pack artifact
|
||||||
uses: actions/upload-artifact@v7
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: axios
|
name: axios-tarball
|
||||||
path: dist
|
path: axios-*.tgz
|
||||||
|
if-no-files-found: error
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
||||||
cjs-smoke-tests:
|
cjs-smoke-tests:
|
||||||
@@ -70,17 +73,17 @@ jobs:
|
|||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
cache: npm
|
cache: npm
|
||||||
cache-dependency-path: tests/smoke/cjs/package-lock.json
|
cache-dependency-path: tests/smoke/cjs/package-lock.json
|
||||||
- name: Install dependencies
|
- name: Download npm pack artifact
|
||||||
if: matrix.node-version == 16 || matrix.node-version == 18
|
|
||||||
run: npm ci
|
|
||||||
- name: Download build artifact
|
|
||||||
uses: actions/download-artifact@v8
|
uses: actions/download-artifact@v8
|
||||||
with:
|
with:
|
||||||
name: axios
|
name: axios-tarball
|
||||||
path: dist
|
path: artifacts
|
||||||
- name: Install CJS smoke test dependencies
|
- name: Install CJS smoke test dependencies
|
||||||
working-directory: tests/smoke/cjs
|
working-directory: tests/smoke/cjs
|
||||||
run: npm install
|
run: npm install
|
||||||
|
- name: Install packed axios
|
||||||
|
working-directory: tests/smoke/cjs
|
||||||
|
run: npm install --no-save ../../../artifacts/axios-*.tgz
|
||||||
- name: Run CJS smoke tests
|
- name: Run CJS smoke tests
|
||||||
working-directory: tests/smoke/cjs
|
working-directory: tests/smoke/cjs
|
||||||
run: npm run test:smoke:cjs:mocha
|
run: npm run test:smoke:cjs:mocha
|
||||||
@@ -104,20 +107,89 @@ jobs:
|
|||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
cache: npm
|
cache: npm
|
||||||
cache-dependency-path: tests/smoke/esm/package-lock.json
|
cache-dependency-path: tests/smoke/esm/package-lock.json
|
||||||
- name: Install dependencies
|
- name: Download npm pack artifact
|
||||||
run: npm ci
|
|
||||||
- name: Download build artifact
|
|
||||||
uses: actions/download-artifact@v8
|
uses: actions/download-artifact@v8
|
||||||
with:
|
with:
|
||||||
name: axios
|
name: axios-tarball
|
||||||
path: dist
|
path: artifacts
|
||||||
- name: Install ESM smoke test dependencies
|
- name: Install ESM smoke test dependencies
|
||||||
working-directory: tests/smoke/esm
|
working-directory: tests/smoke/esm
|
||||||
run: npm install
|
run: npm install
|
||||||
|
- name: Install packed axios
|
||||||
|
working-directory: tests/smoke/esm
|
||||||
|
run: npm install --no-save ../../../artifacts/axios-*.tgz
|
||||||
- name: Run ESM smoke tests
|
- name: Run ESM smoke tests
|
||||||
working-directory: tests/smoke/esm
|
working-directory: tests/smoke/esm
|
||||||
run: npm run test:smoke:esm:vitest
|
run: npm run test:smoke:esm:vitest
|
||||||
|
|
||||||
|
cjs-module-tests:
|
||||||
|
name: CJS module tests (Node ${{ matrix.node-version }})
|
||||||
|
needs: build-and-run-vitest
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
node-version: [12, 14, 16, 18]
|
||||||
|
steps:
|
||||||
|
- name: Checkout repo
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
with:
|
||||||
|
persist-credentials: true
|
||||||
|
- name: Setup node
|
||||||
|
uses: actions/setup-node@v6
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
cache: npm
|
||||||
|
cache-dependency-path: tests/module/cjs/package-lock.json
|
||||||
|
- name: Download npm pack artifact
|
||||||
|
uses: actions/download-artifact@v8
|
||||||
|
with:
|
||||||
|
name: axios-tarball
|
||||||
|
path: artifacts
|
||||||
|
- name: Install CJS module test dependencies
|
||||||
|
working-directory: tests/module/cjs
|
||||||
|
run: npm install
|
||||||
|
- name: Install packed axios
|
||||||
|
working-directory: tests/module/cjs
|
||||||
|
run: npm install --no-save ../../../artifacts/axios-*.tgz
|
||||||
|
- name: Run CJS module tests
|
||||||
|
working-directory: tests/module/cjs
|
||||||
|
run: npm run test:module:cjs
|
||||||
|
|
||||||
|
esm-module-tests:
|
||||||
|
name: ESM module tests (Node ${{ matrix.node-version }})
|
||||||
|
needs: build-and-run-vitest
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
node-version: [20, 22, 24]
|
||||||
|
steps:
|
||||||
|
- name: Checkout repo
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
with:
|
||||||
|
persist-credentials: true
|
||||||
|
- name: Setup node
|
||||||
|
uses: actions/setup-node@v6
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
cache: npm
|
||||||
|
cache-dependency-path: tests/module/esm/package-lock.json
|
||||||
|
- name: Download npm pack artifact
|
||||||
|
uses: actions/download-artifact@v8
|
||||||
|
with:
|
||||||
|
name: axios-tarball
|
||||||
|
path: artifacts
|
||||||
|
- name: Install ESM module test dependencies
|
||||||
|
working-directory: tests/module/esm
|
||||||
|
run: npm install
|
||||||
|
- name: Install packed axios
|
||||||
|
working-directory: tests/module/esm
|
||||||
|
run: npm install --no-save ../../../artifacts/axios-*.tgz
|
||||||
|
- name: Run ESM module tests
|
||||||
|
working-directory: tests/module/esm
|
||||||
|
run: npm run test:module:esm
|
||||||
|
|
||||||
bump-version-and-create-pr:
|
bump-version-and-create-pr:
|
||||||
name: Bump version and create PR
|
name: Bump version and create PR
|
||||||
needs: [build-and-run-vitest, cjs-smoke-tests, esm-smoke-tests]
|
needs: [build-and-run-vitest, cjs-smoke-tests, esm-smoke-tests]
|
||||||
|
|||||||
Reference in New Issue
Block a user