From 6081122e8863000389557d4c28f7b76b866d07ef Mon Sep 17 00:00:00 2001 From: yage Date: Tue, 20 Feb 2024 23:22:17 -0700 Subject: [PATCH] publish based on tag releases instead of main releases --- .circleci/config.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b0d09bb..10dc876 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -100,6 +100,7 @@ jobs: name: publish command: | : \ + && [ $CIRCLE_TAG ] \ && pnpm build \ && pnpm version $(git describe --tags) \ && pnpm set //registry.npmjs.org/:_authToken=$NPM_TOKEN \ @@ -114,8 +115,10 @@ workflows: requires: [python-test] context: [pypi-yage] filters: + tags: + only: /^v.*$/ branches: - only: main + ignore: /^.*$/ nodejs: jobs: @@ -124,5 +127,7 @@ workflows: requires: [nodejs-test] context: [npm-wrynegade] filters: + tags: + only: /^v.*$/ branches: - only: main + ignore: /^.*$/