Skip to content

Commit

Permalink
Merge pull request #690 from wheresrhys/rhys/release-please-publishes
Browse files Browse the repository at this point in the history
chore: updated circleci to publish on release-please-tags
  • Loading branch information
wheresrhys authored Jul 15, 2024
2 parents f8aff72 + eb633f9 commit de92414
Show file tree
Hide file tree
Showing 4 changed files with 5,171 additions and 4,422 deletions.
14 changes: 7 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ jobs:
steps:
- *workspace
- run: npm run build
- run: |
NPM_PUBLISH_TAG=$([[ $CIRCLE_TAG =~ -[a-z-]+ ]] && echo "pre-release" || echo "latest")
echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > ${HOME}/.npmrc
cd ./packages/fetch-mock-legacy
npm version --no-git-tag-version $CIRCLE_TAG
npm publish --access public --tag $NPM_PUBLISH_TAG
- run:
name: NPM auth
command: echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > ${HOME}/.npmrc
- run:
name: NPM publish
command: ./scripts/circleci-npm-publish.sh

workflows:
version: 2
Expand Down Expand Up @@ -165,4 +165,4 @@ workflows:
branches:
ignore: /.*/
tags:
only: /^v?\d+\.\d+\.\d+(?:-(beta|alpha)\.\d+)?$/
only: /^[\w-]+-v?\d+\.\d+\.\d+(?:-(beta|alpha)\.\d+)?$/
Loading

0 comments on commit de92414

Please sign in to comment.