- update publish action
- ncu -u
- use prepare
- remove :maintainLockFilesWeekly
This commit is contained in:
Nebel 2021-02-06 17:40:12 +09:00
parent 304fa63f41
commit 2d60818925
4 changed files with 15 additions and 19 deletions

View file

@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v2
- id: yarn_cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
- uses: actions/cache@v2
with:
path: ${{ steps.yarn_cache.outputs.dir }}
key: yarn-${{ hashFiles('**/yarn.lock') }}
@ -19,9 +19,9 @@ jobs:
run: |
git config --global user.email bot@example
git config --global user.name bot
- run: npm version patch
- name: Publish.
run: |
npm version patch
git push --atomic --tags origin HEAD
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
npm publish
- run: git push origin --tags

View file

@ -14,12 +14,12 @@
"author": "Kohei Watanabe <kou029w@gmail.com>",
"license": "MIT",
"devDependencies": {
"@types/node": "^14.6.3",
"typescript": "^4.0.2"
"@types/node": "^14.14.25",
"typescript": "^4.1.3"
},
"scripts": {
"build": "tsc",
"prepublish": "rm -rf dist && yarn build"
"prepare": "rm -rf dist && npm run build"
},
"keywords": [
"gpio",

View file

@ -1,8 +1,4 @@
{
"extends": [
"config:base",
":preserveSemverRanges",
":maintainLockFilesWeekly"
],
"extends": ["config:base", ":preserveSemverRanges"],
"automerge": true
}

View file

@ -2,12 +2,12 @@
# yarn lockfile v1
"@types/node@^14.6.3":
version "14.6.3"
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.6.3.tgz#cc4f979548ca4d8e7b90bc0180052ab99ee64224"
integrity sha512-pC/hkcREG6YfDfui1FBmj8e20jFU5Exjw4NYDm8kEdrW+mOh0T1Zve8DWKnS7ZIZvgncrctcNCXF4Q2I+loyww==
"@types/node@^14.14.25":
version "14.14.25"
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.25.tgz#15967a7b577ff81383f9b888aa6705d43fbbae93"
integrity sha512-EPpXLOVqDvisVxtlbvzfyqSsFeQxltFbluZNRndIb8tr9KiBnYNLzrc1N3pyKUCww2RNrfHDViqDWWE1LCJQtQ==
typescript@^4.0.2:
version "4.0.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.0.2.tgz#7ea7c88777c723c681e33bf7988be5d008d05ac2"
integrity sha512-e4ERvRV2wb+rRZ/IQeb3jm2VxBsirQLpQhdxplZ2MEzGvDkkMmPglecnNDfSUBivMjP93vRbngYYDQqQ/78bcQ==
typescript@^4.1.3:
version "4.1.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.1.3.tgz#519d582bd94cba0cf8934c7d8e8467e473f53bb7"
integrity sha512-B3ZIOf1IKeH2ixgHhj6la6xdwR9QrLC5d1VKeCSY4tvkqhF2eqd9O7txNlS0PO3GrBAFIdr3L1ndNwteUbZLYg==