Skip to content

Commit b55176e

Browse files
authored
Publish content from inside dist folder (#7)
1 parent 2daf912 commit b55176e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@ jobs:
1515
# Defaults to the user or organization that owns the workflow file
1616
scope: "@mittwald"
1717
- run: yarn
18-
- run: yarn compile
1918
- run: git config --global user.name "Mittwald Machine"
2019
- run: git config --global user.email "[email protected]"
21-
- run: yarn version --new-version ${GITHUB_REF##*/} --no-git-tag-version
20+
- run: yarn prepublish:all
2221
- name: Publish things
2322
env:
2423
NODE_AUTH_TOKEN: ${{ secrets.MITTWALD_MACHINE_TOKEN }}
25-
run: yarn publish
24+
run: yarn publish dist --new-version ${GITHUB_REF##*/} --no-git-tag-version

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,20 @@
44
"author": "Mittwald CM Service GmbH & Co. KG",
55
"name": "@mittwald/vaults",
66
"description": "Almost Fully Typed Vault Client for Typescript and Javascript",
7-
"main": "dist/index.js",
8-
"types": "dist/index.d.ts",
7+
"main": "index.js",
8+
"types": "index.d.ts",
99
"scripts": {
1010
"test": "yarn test:unit",
1111
"lint": "eslint 'src/**/*.{ts,tsx}' 2>/dev/null",
1212
"compile": "yarn tsc -p tsconfig.dist.json",
13-
"precompile:build-interfaces": "find src -name \"*types.ts\" -exec npx ts-interface-builder --ignore-generics --ignore-index-signature {} \\; && tsc && cp package.json *.md dist",
13+
"precompile:build-interfaces": "find src -name \"*types.ts\" -exec npx ts-interface-builder --ignore-generics --ignore-index-signature {} \\; && tsc",
1414
"cli": "node dist/cli.js",
1515
"precommit:format": "run-s test:staged-formatted",
1616
"precommit": "run-s precommit:*",
1717
"precommit:lint": "run-s lint:staged",
1818
"prepublish:all": "run-s compile 'prepublish:!(all)'",
1919
"prepublish:default": "exit",
20+
"prepublish:copy": "cp package.json *.md dist",
2021
"ts-out-dir": "cat tsconfig.json | yarn -s jp --log /compilerOptions/outDir",
2122
"clean": "mkdir -p $(yarn -s ts-out-dir) && rm -rf $(yarn -s ts-out-dir)/*",
2223
"precompile": "run-s precompile:*",

0 commit comments

Comments
 (0)