Skip to content

Commit 8167f3f

Browse files
authored
Merge pull request #9 from mococa/workflow/fix-build-and-work-directory
📝 workflow: fix build and work directory
2 parents 37b8dce + 5734257 commit 8167f3f

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,19 @@ jobs:
1414
- name: Setup Node
1515
uses: actions/setup-node@v2
1616
with:
17-
node-version: "16"
17+
node-version: "14"
1818
registry-url: "https://registry.npmjs.org"
1919

2020
- name: Install Dependencies
21+
working-directory: infrastructure
2122
run: yarn install
2223

2324
- name: Build
25+
working-directory: infrastructure
2426
run: yarn run build
2527

2628
- name: Publish package on NPM
27-
run: |
28-
cd infrastructure
29-
npm publish
29+
working-directory: infrastructure
30+
run: npm publish
3031
env:
3132
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

infrastructure/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"module": "dist/src",
2424
"types": "dist/src/index.d.ts",
2525
"scripts": {
26-
"build": "tsc",
26+
"build": "tsc --build tsconfig.json",
2727
"watch": "tsc -w",
2828
"test": "echo \"Error: no test specified\" && exit 1",
2929
"prepublishOnly": "npm run build",
@@ -53,6 +53,7 @@
5353
"aws-cdk-lib": "2.82.0",
5454
"aws-serverless-express": "^3.4.0",
5555
"express": "^4.18.2",
56+
"constructs": "^10.0.0",
5657
"source-map-support": "^0.5.21"
5758
}
5859
}

infrastructure/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"esModuleInterop": true,
2121
"typeRoots": ["./node_modules/@types"],
2222
"noEmit": false,
23-
"outDir": "./dist",
23+
"outDir": "./dist"
2424
},
2525
"exclude": ["node_modules", "cdk.out", "dist"]
2626
}

infrastructure/yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,11 @@ [email protected]:
268268
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
269269
integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==
270270

271+
constructs@^10.0.0:
272+
version "10.2.69"
273+
resolved "https://registry.yarnpkg.com/constructs/-/constructs-10.2.69.tgz#5bb06693b317140fe310797ffd52c0d6cc595913"
274+
integrity sha512-0AiM/uQe5Uk6JVe/62oolmSN2MjbFQkOlYrM3fFGZLKuT+g7xlAI10EebFhyCcZwI2JAcWuWCmmCAyCothxjuw==
275+
271276
272277
version "0.5.4"
273278
resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.4.tgz#8b82b4efac82512a02bb0b1dcec9d2c5e8eb5bfe"

0 commit comments

Comments
 (0)