Skip to content

Commit

Permalink
Merge pull request #14 from ES-Space/dev
Browse files Browse the repository at this point in the history
ci: update ci
  • Loading branch information
huccct authored Jan 15, 2025
2 parents 83b78d0 + 34ad6b5 commit 4559c6a
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,29 @@ jobs:
name: Authenticate with registry
command: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
- run:
name: Update version
command: cd packages/react-drager && npm version patch
name: Set version from GitHub Release
command: |
VERSION=${CIRCLE_TAG#v}
cd packages/react-drager && npm version $VERSION --no-git-tag-version
- run:
name: Publish package
command: cd packages/react-drager && npm publish --access public

workflows:
version: 2
manual-publish:
when:
and:
- equal: [manual-publish, << pipeline.trigger_source >>]
release:
jobs:
- build-node
- build-node:
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/
- publish-npm:
requires:
- build-node
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/

0 comments on commit 4559c6a

Please sign in to comment.