From 2d60818925a020d31400297c041d62b27d6d8c15 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Sat, 6 Feb 2021 17:40:12 +0900 Subject: [PATCH] chore - update publish action - ncu -u - use prepare - remove :maintainLockFilesWeekly --- .github/workflows/publish.yml | 6 +++--- package.json | 6 +++--- renovate.json | 6 +----- yarn.lock | 16 ++++++++-------- 4 files changed, 15 insertions(+), 19 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1189efa..b130639 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 diff --git a/package.json b/package.json index 7dc9b04..c58bbae 100644 --- a/package.json +++ b/package.json @@ -14,12 +14,12 @@ "author": "Kohei Watanabe ", "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", diff --git a/renovate.json b/renovate.json index 5688e48..6686b47 100644 --- a/renovate.json +++ b/renovate.json @@ -1,8 +1,4 @@ { - "extends": [ - "config:base", - ":preserveSemverRanges", - ":maintainLockFilesWeekly" - ], + "extends": ["config:base", ":preserveSemverRanges"], "automerge": true } diff --git a/yarn.lock b/yarn.lock index 015ef08..f5d84a7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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==