Compare commits
3 Commits
ef79734fac
...
v4-develop
Author | SHA1 | Date | |
---|---|---|---|
6081122e88 | |||
db18183c94 | |||
fec8c5e560 |
@ -13,7 +13,7 @@ executors:
|
||||
nodejs:
|
||||
docker:
|
||||
- image: node:18
|
||||
resource_class: large
|
||||
resource_class: medium
|
||||
|
||||
|
||||
jobs:
|
||||
@ -23,11 +23,13 @@ jobs:
|
||||
steps:
|
||||
- checkout:
|
||||
path: ~/scwrypts
|
||||
- run: |
|
||||
: \
|
||||
&& pip install . .[test] \
|
||||
&& pytest \
|
||||
;
|
||||
- run:
|
||||
name: pytest
|
||||
command: |
|
||||
: \
|
||||
&& pip install . .[test] \
|
||||
&& pytest \
|
||||
;
|
||||
|
||||
python-publish:
|
||||
executor: python
|
||||
@ -66,6 +68,7 @@ jobs:
|
||||
|
||||
- run: pnpm test
|
||||
- run: pnpm lint
|
||||
- run: pnpm build
|
||||
|
||||
nodejs-publish:
|
||||
executor: nodejs
|
||||
@ -93,9 +96,16 @@ jobs:
|
||||
paths:
|
||||
- .pnpm-store
|
||||
|
||||
- run: pnpm build
|
||||
- run: pnpm version $(git describe --tags)
|
||||
|
||||
- run:
|
||||
name: publish
|
||||
command: |
|
||||
: \
|
||||
&& [ $CIRCLE_TAG ] \
|
||||
&& pnpm build \
|
||||
&& pnpm version $(git describe --tags) \
|
||||
&& pnpm set //registry.npmjs.org/:_authToken=$NPM_TOKEN \
|
||||
&& pnpm publish --no-git-checks \
|
||||
;
|
||||
|
||||
workflows:
|
||||
python:
|
||||
@ -103,15 +113,21 @@ workflows:
|
||||
- python-test
|
||||
- python-publish:
|
||||
requires: [python-test]
|
||||
context: [pypi-yage]
|
||||
filters:
|
||||
tags:
|
||||
only: /^v.*$/
|
||||
branches:
|
||||
only: main
|
||||
ignore: /^.*$/
|
||||
|
||||
nodejs:
|
||||
jobs:
|
||||
- nodejs-test
|
||||
- nodejs-publish:
|
||||
requires: [nodejs-test]
|
||||
context: [npm-wrynegade]
|
||||
filters:
|
||||
tags:
|
||||
only: /^v.*$/
|
||||
branches:
|
||||
only: main
|
||||
ignore: /^.*$/
|
||||
|
@ -26,6 +26,7 @@
|
||||
"prettier": "^3.2.5",
|
||||
"ts-jest": "^29.1.2",
|
||||
"ts-node": "^10.9.2",
|
||||
"typescript": "^5.3.3",
|
||||
"uuid": "^9.0.1"
|
||||
},
|
||||
"eslintConfig": {
|
||||
|
3
zx/lib/pnpm-lock.yaml
generated
3
zx/lib/pnpm-lock.yaml
generated
@ -43,6 +43,9 @@ devDependencies:
|
||||
ts-node:
|
||||
specifier: ^10.9.2
|
||||
version: 10.9.2(@types/node@20.11.19)(typescript@5.3.3)
|
||||
typescript:
|
||||
specifier: ^5.3.3
|
||||
version: 5.3.3
|
||||
uuid:
|
||||
specifier: ^9.0.1
|
||||
version: 9.0.1
|
||||
|
Reference in New Issue
Block a user