diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 384cc76..e041dd5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -18,24 +18,24 @@ jobs: token: ${{ secrets.BOT_TOKEN }} fetch-depth: 0 - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v2 with: node-version: 14 - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "::set-output name=dir::$(yarn cache dir)" - - uses: actions/cache@v1 + - uses: actions/cache@v2 id: yarn-cache with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- - - run: yarn install + - run: yarn - run: yarn lint - run: yarn test - run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc - run: git config --global user.email ${{ secrets.GH_EMAIL }} - run: git config --global user.name ${{ secrets.GH_USER }} - - run: yarn release + - run: yarn release --no-verify # skip lifecycle checks for automated releases - run: git push --follow-tags origin ${GITHUB_REF##*/} && npm publish diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml index 80160f9..66af527 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/pr-build.yml @@ -20,7 +20,7 @@ jobs: with: fetch-depth: 1 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - run: yarn diff --git a/package.json b/package.json index cf5bc54..ccba7fe 100644 --- a/package.json +++ b/package.json @@ -93,5 +93,8 @@ "pre-commit": "lint-staged", "pre-push": "yarn lint && yarn test && yarn eslint-check" } + }, + "standard-version": { + "releaseCommitMessageFormat": "chore(release): {{currentTag}} [skip ci]" } }