Skip to content

Commit b729ca2

Browse files
committed
Upgrade code to use Typescript 5
Set code to run on Node 18 Changed logic for git hooks
1 parent 590e4d2 commit b729ca2

File tree

5 files changed

+1131
-7344
lines changed

5 files changed

+1131
-7344
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy master branch
1+
name: Deploy main branch
22

33
on:
44
push:
@@ -7,22 +7,17 @@ on:
77

88
jobs:
99
deploy:
10-
name: deploy
1110
runs-on: ubuntu-latest
1211
strategy:
1312
matrix:
14-
node-version: [16.x]
13+
node: [14, 16, 18]
14+
name: Build for Node ${{ matrix.node }} version
1515
steps:
1616
- uses: actions/checkout@v3
17-
- name: Use Node.js ${{ matrix.node-version }}
17+
- name: Use Node.js ${{ matrix.node }}
1818
uses: actions/setup-node@v3
1919
with:
20-
node-version: ${{ matrix.node-version }}
21-
- run: npm ci
22-
# Uncomment the following to deploy to AWS
23-
# - name: serverless deploy
24-
# uses: serverless/[email protected]
25-
# with:
26-
# args: deploy
27-
# env:
28-
# TEST: ${{ secrets.TEST }}
20+
node-version: ${{ matrix.node }}
21+
- run: npm install
22+
# - run: npm test
23+
# - run: npm run eslint

.github/workflows/release.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Deploy package to AWS
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
10+
- uses: actions/checkout@v3
11+
- uses: actions/setup-node@v3
12+
with:
13+
node-version: 18
14+
- run: npm install
15+
# Enable this to deploy to AWS
16+
# - name: serverless deploy
17+
# uses: serverless/github-action@v3
18+
# with:
19+
# args: deploy --stage production

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Once this is running, it's available at [http://localhost:4000](http://localhost
2222

2323
## Github actions
2424

25-
This template also contains github actions to execute the deployment via Github actions, but you will need to uncomment these lines in the `.github/workflows/main.yml` file:
25+
This template also contains github actions to execute the deployment via Github actions, but you will need to uncomment these lines in the `.github/workflows/release.yml` file:
2626

2727
```yaml
2828
# ...
@@ -35,4 +35,6 @@ This template also contains github actions to execute the deployment via Github
3535
TEST: ${{ secrets.TEST }}
3636
```
3737
38+
Then to start the deployment you just need to create a new Release in your repository.
39+
3840
> If you don't have github actions support, simply remove the `.github` folder.

0 commit comments

Comments
 (0)