Skip to content

Commit

Permalink
Merge pull request #9 from mococa/workflow/fix-build-and-work-directory
Browse files Browse the repository at this point in the history
📝 workflow: fix build and work directory
  • Loading branch information
mococa authored Jul 7, 2023
2 parents 37b8dce + 5734257 commit 8167f3f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,19 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: "16"
node-version: "14"
registry-url: "https://registry.npmjs.org"

- name: Install Dependencies
working-directory: infrastructure
run: yarn install

- name: Build
working-directory: infrastructure
run: yarn run build

- name: Publish package on NPM
run: |
cd infrastructure
npm publish
working-directory: infrastructure
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 2 additions & 1 deletion infrastructure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"module": "dist/src",
"types": "dist/src/index.d.ts",
"scripts": {
"build": "tsc",
"build": "tsc --build tsconfig.json",
"watch": "tsc -w",
"test": "echo \"Error: no test specified\" && exit 1",
"prepublishOnly": "npm run build",
Expand Down Expand Up @@ -53,6 +53,7 @@
"aws-cdk-lib": "2.82.0",
"aws-serverless-express": "^3.4.0",
"express": "^4.18.2",
"constructs": "^10.0.0",
"source-map-support": "^0.5.21"
}
}
2 changes: 1 addition & 1 deletion infrastructure/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"esModuleInterop": true,
"typeRoots": ["./node_modules/@types"],
"noEmit": false,
"outDir": "./dist",
"outDir": "./dist"
},
"exclude": ["node_modules", "cdk.out", "dist"]
}
5 changes: 5 additions & 0 deletions infrastructure/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,11 @@ [email protected]:
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==

constructs@^10.0.0:
version "10.2.69"
resolved "https://registry.yarnpkg.com/constructs/-/constructs-10.2.69.tgz#5bb06693b317140fe310797ffd52c0d6cc595913"
integrity sha512-0AiM/uQe5Uk6JVe/62oolmSN2MjbFQkOlYrM3fFGZLKuT+g7xlAI10EebFhyCcZwI2JAcWuWCmmCAyCothxjuw==

[email protected]:
version "0.5.4"
resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.4.tgz#8b82b4efac82512a02bb0b1dcec9d2c5e8eb5bfe"
Expand Down

0 comments on commit 8167f3f

Please sign in to comment.