Skip to content

Commit

Permalink
fix: update standard-version message format
Browse files Browse the repository at this point in the history
Fixes github actions continuously triggering redeploys. Closes #183
  • Loading branch information
chrishavekost committed Jan 12, 2021
1 parent 58e54b3 commit e49a8ee
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/pr-build.yml
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions package.json
Expand Up @@ -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]"
}
}

0 comments on commit e49a8ee

Please sign in to comment.