Skip to content

Commit 6d833ff

Browse files
authored
PAPI-408 bump minimum node version (#180)
* sort deps so it's easier to see what's changed * Bump minimum node version to 18, which is the oldest version still receiving security updates. * bump client version * Resolve a critical vulnerability Bump crypto-js to the latest version * Allow CI to run on PRs. Also rename the jobs so they are shorter.
1 parent c702e9d commit 6d833ff

File tree

4 files changed

+3215
-1773
lines changed

4 files changed

+3215
-1773
lines changed

.github/workflows/deploy_library.yml renamed to .github/workflows/test-and-deplyo.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
1-
name: gocardless/gocardless-nodejs/deploy_library
2-
on:
3-
push:
4-
branches:
5-
- master
1+
name: test & publish
2+
on: push
3+
64
jobs:
7-
test_library:
5+
test:
86
runs-on: ubuntu-latest
97
container:
108
image: node:lts
119
steps:
1210
- uses: actions/[email protected]
1311
- run: npm install --save-dev jest typescript ts-jest @types/jest
1412
- run: npm test
15-
transpile_library:
13+
14+
transpile:
1615
runs-on: ubuntu-latest
1716
container:
1817
image: node:lts
1918
needs:
20-
- test_library
19+
- test
2120
steps:
2221
- uses: actions/[email protected]
2322
- run: npm install
@@ -26,13 +25,14 @@ jobs:
2625
- uses: actions/[email protected]
2726
with:
2827
path: "dist"
28+
2929
publish_to_npm:
3030
if: github.ref == 'refs/heads/master'
3131
runs-on: ubuntu-latest
3232
container:
3333
image: node:lts
3434
needs:
35-
- transpile_library
35+
- transpile
3636
env:
3737
DIST_FOLDER: "/dist/artifact"
3838
steps:

0 commit comments

Comments
 (0)