mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
chore: removing dist files from src (#7002)
* chore: removing dist files from src * chore: include build step in CI pipeline * chore: add build step to PR and publish workflows
This commit is contained in:
@@ -57,5 +57,7 @@ jobs:
|
|||||||
if: steps.changed-ignored.outputs.only_modified == 'false'
|
if: steps.changed-ignored.outputs.only_modified == 'false'
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
if: steps.changed-ignored.outputs.only_modified == 'false'
|
if: steps.changed-ignored.outputs.only_modified == 'false'
|
||||||
|
- run: npm run build
|
||||||
|
if: steps.changed-ignored.outputs.only_modified == 'false'
|
||||||
- run: npm test
|
- run: npm test
|
||||||
if: steps.changed-ignored.outputs.only_modified == 'false'
|
if: steps.changed-ignored.outputs.only_modified == 'false'
|
||||||
|
|||||||
@@ -1,30 +0,0 @@
|
|||||||
name: "PR guard"
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
types: [opened, synchronize, reopened]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
check-dist:
|
|
||||||
if: github.event.pull_request.head.repo.full_name != github.repository
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
pull-requests: write
|
|
||||||
steps:
|
|
||||||
- uses: dorny/paths-filter@v3
|
|
||||||
id: filter
|
|
||||||
with:
|
|
||||||
filters: |
|
|
||||||
dist:
|
|
||||||
- 'dist/**'
|
|
||||||
|
|
||||||
- name: Comment if dist/ was changed
|
|
||||||
if: steps.filter.outputs.dist == 'true'
|
|
||||||
uses: peter-evans/create-or-update-comment@v4
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
issue-number: ${{ github.event.pull_request.number }}
|
|
||||||
body: |
|
|
||||||
⚠️ **Warning!** You have made changes to the `dist/` directory.
|
|
||||||
These files should not be edited manually as they will be built by our CI/CD pipeline during release.
|
|
||||||
Please remove these changes from the pull request.
|
|
||||||
@@ -32,6 +32,7 @@ jobs:
|
|||||||
node-version: 16
|
node-version: 16
|
||||||
cache: npm
|
cache: npm
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
- run: npm run build
|
||||||
- name: Prepare release
|
- name: Prepare release
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ jobs:
|
|||||||
node-version: 18
|
node-version: 18
|
||||||
registry-url: https://registry.npmjs.org/
|
registry-url: https://registry.npmjs.org/
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
- run: npm run build
|
||||||
- name: get-npm-version
|
- name: get-npm-version
|
||||||
id: package-version
|
id: package-version
|
||||||
uses: martinbeentjes/npm-get-version-action@main
|
uses: martinbeentjes/npm-get-version-action@main
|
||||||
|
|||||||
@@ -12,3 +12,4 @@ backup/
|
|||||||
/.husky/
|
/.husky/
|
||||||
.npmrc
|
.npmrc
|
||||||
.env
|
.env
|
||||||
|
dist/
|
||||||
|
|||||||
@@ -24,8 +24,6 @@ Please update the [documentation](https://axios-http.com/docs/intro) accordingly
|
|||||||
- `npm run build` run rollup and bundle the source
|
- `npm run build` run rollup and bundle the source
|
||||||
- `npm run version` prepare the code for release
|
- `npm run version` prepare the code for release
|
||||||
|
|
||||||
Please don't include changes to `dist/` in your pull request. This should only be updated when releasing a new version.
|
|
||||||
|
|
||||||
## Running Examples
|
## Running Examples
|
||||||
|
|
||||||
Examples are included in part to allow manual testing.
|
Examples are included in part to allow manual testing.
|
||||||
|
|||||||
Vendored
-4330
File diff suppressed because it is too large
Load Diff
Vendored
-1
File diff suppressed because one or more lines are too long
Vendored
-3
File diff suppressed because one or more lines are too long
Vendored
-1
File diff suppressed because one or more lines are too long
Vendored
-3767
File diff suppressed because it is too large
Load Diff
Vendored
-1
File diff suppressed because one or more lines are too long
Vendored
-3790
File diff suppressed because it is too large
Load Diff
Vendored
-1
File diff suppressed because one or more lines are too long
Vendored
-3
File diff suppressed because one or more lines are too long
Vendored
-1
File diff suppressed because one or more lines are too long
Vendored
-4824
File diff suppressed because it is too large
Load Diff
Vendored
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user