publish based on tag releases instead of main releases

This commit is contained in:
Wryn (yage) Wagner 2024-02-20 23:22:17 -07:00
parent db18183c94
commit 6081122e88

View File

@ -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: /^.*$/