diff --git a/.github/workflows/release-branch.yml b/.github/workflows/release-branch.yml index 57273813..784df0d7 100644 --- a/.github/workflows/release-branch.yml +++ b/.github/workflows/release-branch.yml @@ -288,7 +288,7 @@ jobs: VERSION=$(node -p "require('./package.json').version") echo "newTag=$VERSION" >> "$GITHUB_OUTPUT" echo "newBranch=release-v1x/version-$VERSION" >> "$GITHUB_OUTPUT" - - name: Bump bower etc + - name: Run preversion env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: npm run preversion diff --git a/README.md b/README.md index 158516e7..9bf03e58 100644 --- a/README.md +++ b/README.md @@ -127,12 +127,6 @@ Using npm: $ npm install axios ``` -Using bower: - -```bash -$ bower install axios -``` - Using yarn: ```bash diff --git a/bower.json b/bower.json deleted file mode 100644 index 1e10ee1c..00000000 --- a/bower.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "name": "axios", - "main": "./dist/axios.js", - "version": "1.15.0", - "homepage": "https://axios-http.com", - "authors": [ - "Matt Zabriskie" - ], - "description": "Promise based HTTP client for the browser and node.js", - "moduleType": [ - "amd", - "globals" - ], - "keywords": [ - "xhr", - "http", - "ajax", - "promise", - "node", - "browser", - "fetch", - "rest", - "api", - "client" - ], - "license": "MIT", - "ignore": [ - "**/.*", - "*.iml", - "examples", - "lib", - "node_modules", - "sandbox", - "test", - "CONTRIBUTING.md", - "COOKBOOK.md", - "Gruntfile.js", - "index.js", - "karma.conf.js", - "package.json", - "webpack.*.js" - ] -} \ No newline at end of file diff --git a/gulpfile.js b/gulpfile.js index f3a5151b..cded2b04 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -13,20 +13,6 @@ const clear = gulp.task('clear', async function () { await fs.emptyDir('./dist/'); }); -const bower = gulp.task('bower', async function () { - const npm = JSON.parse(await fs.readFile('package.json')); - const bower = JSON.parse(await fs.readFile('bower.json')); - - const fields = ['name', 'description', 'version', 'homepage', 'license', 'keywords']; - - for (let i = 0, l = fields.length; i < l; i++) { - const field = fields[i]; - bower[field] = npm[field]; - } - - await fs.writeFile('bower.json', JSON.stringify(bower, null, 2)); -}); - async function getContributors(user, repo, maxCount = 1) { const contributors = ( await axios.get( @@ -88,6 +74,6 @@ const env = gulp.task('env', async function () { ); }); -const version = gulp.series('bower', 'env', 'package'); +const version = gulp.series('env', 'package'); -export { bower, env, clear, version, packageJSON }; +export { env, clear, version, packageJSON };