Skip to content

Commit a0bc911

Browse files
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
1 parent c959ff2 commit a0bc911

18 files changed

Lines changed: 5 additions & 16755 deletions

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,7 @@ jobs:
5757
if: steps.changed-ignored.outputs.only_modified == 'false'
5858
- run: npm ci
5959
if: steps.changed-ignored.outputs.only_modified == 'false'
60+
- run: npm run build
61+
if: steps.changed-ignored.outputs.only_modified == 'false'
6062
- run: npm test
6163
if: steps.changed-ignored.outputs.only_modified == 'false'

.github/workflows/pr-guard.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/pr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
node-version: 16
3333
cache: npm
3434
- run: npm ci
35+
- run: npm run build
3536
- name: Prepare release
3637
env:
3738
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
node-version: 18
2929
registry-url: https://registry.npmjs.org/
3030
- run: npm ci
31+
- run: npm run build
3132
- name: get-npm-version
3233
id: package-version
3334
uses: martinbeentjes/npm-get-version-action@main

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ backup/
1212
/.husky/
1313
.npmrc
1414
.env
15+
dist/

CONTRIBUTING.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ Please update the [documentation](https://axios-http.com/docs/intro) accordingly
2424
- `npm run build` run rollup and bundle the source
2525
- `npm run version` prepare the code for release
2626

27-
Please don't include changes to `dist/` in your pull request. This should only be updated when releasing a new version.
28-
2927
## Running Examples
3028

3129
Examples are included in part to allow manual testing.

0 commit comments

Comments
 (0)