Skip to content

Commit e61a51f

Browse files
committed
fix(package.json): remove scripts no longer required and don't npm ci on swagger bump
1 parent f9441e9 commit e61a51f

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

.github/workflows/swagger-bump.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ jobs:
1313
with:
1414
node-version: 12
1515
registry-url: 'https://registry.npmjs.org'
16-
- run: npm ci
17-
- run: npm version:1-swagger
16+
- run: npm run bump-swagger
1817
- uses: stefanzweifel/git-auto-commit-action@v4
1918
with:
2019
commit_message: "chore: bump swagger.yml file"

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,12 @@
4949
"url": "git+https://github.com/netlify/open-api.git"
5050
},
5151
"scripts": {
52-
"prepublishOnly": "git push && git push --tags && gh-release",
5352
"prepare": "run-s test",
5453
"test": "run-s lint build unit",
5554
"start": "run-s lint build",
5655
"build": "run-s convert redoc",
5756
"convert": "node src/convert.js",
58-
"version": "run-s version:*",
59-
"version:1-swagger": "node src/bump-swagger.js",
60-
"version:2-git": "git add swagger.yml",
57+
"bump-swagger": "node src/bump-swagger.js",
6158
"redoc": "node src/docs/build.js",
6259
"lint": "run-s eslint prettier",
6360
"eslint": "eslint --fix \"src/**/*.js\"",

0 commit comments

Comments
 (0)