Skip to content

Commit bf1458e

Browse files
committed
build: first release
1 parent 97c7671 commit bf1458e

File tree

3 files changed

+18
-235
lines changed

3 files changed

+18
-235
lines changed

.circleci/config.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,25 @@ jobs: # a collection of steps
2323
key: dependency-cache-{{ checksum "yarn.lock" }}
2424
paths:
2525
- ./node_modules
26-
- run: # run tests
26+
- run:
2727
name: test
2828
command: yarn test
29-
- run: # run build
29+
- run:
3030
name: build
3131
command: yarn build
32+
- persist_to_workspace:
33+
root: .
34+
paths:
35+
- dist
3236
deploy:
3337
<<: *defaults
3438
steps:
39+
- checkout # special step to check out source code to working directory
3540
- attach_workspace:
36-
at: ~/repo
41+
at: .
42+
- run:
43+
name: install-auto
44+
command: yarn add -D auto
3745
- run:
3846
name: Authenticate with registry
3947
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/repo/.npmrc

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "graphql-codegen-typescript-mock-data",
3-
"version": "0.0.1-beta",
3+
"version": "0.0.3-beta",
44
"description": "GraphQL Codegen plugin for building mock data",
55
"main": "dist/commonjs/index.js",
66
"module": "dist/esnext/index.js",
@@ -33,7 +33,6 @@
3333
"@types/jest": "^24.0.19",
3434
"@typescript-eslint/eslint-plugin": "^1.4.2",
3535
"@typescript-eslint/parser": "^1.4.2",
36-
"auto": "^7.12.3",
3736
"eslint": "6.0.0",
3837
"eslint-config-landr": "0.1.0",
3938
"eslint-config-prettier": "^4.1.0",
@@ -51,9 +50,9 @@
5150
"scripts": {
5251
"build": "tsc -m esnext --outDir dist/esnext && tsc -m commonjs --outDir dist/commonjs",
5352
"test": "jest",
54-
"version": "yarn version `auto version` -m 'Bump version to: %s [skip ci]'",
55-
"publish": "yarn publish && git push --follow-tags --set-upstream origin $branch",
56-
"release": "auto changelog && yarn version && yarn publish && auto release"
53+
"auto:version": "yarn version --`auto version` -m 'Bump version to: %s [skip ci]'",
54+
"auto:publish": "yarn publish && git push --follow-tags --set-upstream origin $CIRCLE_BRANCH",
55+
"release": "auto changelog && yarn auto:version && yarn auto:publish && auto release"
5756
},
5857
"files": [
5958
"dist/**/*",

0 commit comments

Comments
 (0)