Skip to content

Commit d8bd207

Browse files
committed
npm -> yarn
1 parent ffcf013 commit d8bd207

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

Diff for: .github/workflows/npmpublish.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Yarn install
2222
run: yarn install
2323
- name: Runing prepush
24-
run: npm run pre-push
24+
run: yarn run pre-push
2525
- name: Archive production artifacts
2626
uses: actions/upload-artifact@v1
2727
with:
@@ -44,7 +44,7 @@ jobs:
4444
run: git config --global user.name 'GIT Workflow CI' && git config --global user.email [email protected]
4545
- run: npm version patch -m 'Update package version version to %s'
4646
- name: Generate public package.json
47-
run: npm run gen-public-package.json
47+
run: yarn run gen-public-package.json
4848
- name: Generate public README.md
4949
run: cp README.md dist/
5050
- name: NPM Authentication

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ yarn install
110110
CI configuration details here: [.github/workflows/npmpublish.yml](.github/workflows/npmpublish.yml)
111111

112112
```bash
113-
npm run pre-push
113+
yarn run pre-push
114114
&& npm version patch -m 'Update package version version to %s'
115-
&& npm run gen-public-package.json
115+
&& yarn run gen-public-package.json
116116
&& cp README.md dist/
117117
&& npm publish dist --access public
118118
&& git push --no-verify && git push --tags --no-verify

Diff for: package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@
2020
},
2121
"scripts": {
2222
"build": "rimraf dist && tsc -p tsconfig.build.json",
23-
"build:prod": "npm run build",
23+
"build:prod": "yarn run build",
2424
"lint": "eslint --ext .js,.ts src/**",
25-
"lint:fix": "npm run lint -- --fix",
26-
"pre-push": "npm run lint && npm run test && npm run build:prod && npm run tpl-repo:check",
25+
"lint:fix": "yarn run lint -- --fix",
26+
"pre-push": "yarn run lint && yarn run test && yarn run build:prod && yarn run tpl-repo:check",
2727
"preinstall": "node ./tools/check-yarn.js",
2828
"test": "jest -c jest.config.js",
29-
"test:watch": "npm run test -- --watch",
29+
"test:watch": "yarn run test -- --watch",
3030
"tpl-repo": "tools/merge-with-repository-template.sh",
31-
"tpl-repo:check": "npm run tpl-repo -- check",
32-
"tpl-repo:merge": "npm run tpl-repo -- merge",
31+
"tpl-repo:check": "yarn run tpl-repo -- check",
32+
"tpl-repo:merge": "yarn run tpl-repo -- merge",
3333
"gen-public-package.json": "tools/gen-public-package.js"
3434
},
3535
"dependencies": {
@@ -66,7 +66,7 @@
6666
},
6767
"husky": {
6868
"hooks": {
69-
"pre-push": "npm run pre-push",
69+
"pre-push": "yarn run pre-push",
7070
"post-merge": "IS_YARN=true yarn install"
7171
}
7272
}

0 commit comments

Comments
 (0)