Skip to content

Commit

Permalink
Merge pull request #1547 from Cyrik/preview-publish
Browse files Browse the repository at this point in the history
add circleci for publishing a preview version
  • Loading branch information
PEZ authored Feb 19, 2022
2 parents 375c8d8 + 15fa9b4 commit 5193e82
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,26 @@ jobs:
else
npx ${VSCE_CMD}
fi
marketplace-preview-publish:
docker:
- image: circleci/node:latest
working_directory: ~/calva
steps:
- attach_workspace:
at: /tmp
- run:
name: Restore build
command: rmdir ~/calva && cp -r /tmp/build ~/calva
- run:
name: Publish to the marketplace
command: |
VSCE_CMD="vsce publish --pre-release --packagePath /tmp/artifacts/calva-$(node -p 'require("./package.json").version').vsix -p ${PUBLISH_TOKEN}"
if [ "${IS_LOCAL}" = YES ]
then
echo "Dry npx ${VSCE_CMD}"
else
npx ${VSCE_CMD}
fi
open-vsx-publish:
docker:
- image: circleci/node:latest
Expand Down Expand Up @@ -437,6 +457,20 @@ workflows:
tags:
only: /^v\d+\.\d+\.\d+-?.*/
context: Calva
- marketplace-preview-publish:
requires:
- prettier-check
- eslint-check
- test-grammar
- test-cljslib
- test-integration
- test-ts-unit
filters:
branches:
ignore: /.*/
tags:
only: /^v\d+\.\d+\.\d+$/
context: Calva
- marketplace-publish:
requires:
- github-release
Expand Down

0 comments on commit 5193e82

Please sign in to comment.