Skip to content

Commit

Permalink
deps: drop node.js 14 and 16
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomontalbano committed Apr 28, 2024
1 parent 5772d4e commit b8450c7
Show file tree
Hide file tree
Showing 8 changed files with 2,635 additions and 2,037 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,26 @@ jobs:

steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Push to Docker Hub 🐳
uses: docker/build-push-action@v1
- name: Docker meta 🐳
id: meta
uses: docker/metadata-action@v5
with:
images: marcomontalbano/contentful-migration
- name: Set up QEMU 🐳
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx 🐳
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub 🐳
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: marcomontalbano/contentful-migration
tag_with_ref: true
tags: latest
- name: Build and push 🐳
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
6 changes: 3 additions & 3 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ jobs:

steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: pnpm 🧰
uses: pnpm/action-setup@v2.2.4
uses: pnpm/action-setup@v3
with:
version: 7

- name: Node 🧰
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x
registry-url: 'https://registry.npmjs.org'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Create a draft GitHub release 🎁
uses: ncipollo/release-action@v1
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ jobs:
strategy:
max-parallel: 1
matrix:
node: [14.x, 16.x, 18.x]
node: [18.x, 20.x, 22.x]

steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: pnpm 🧰
uses: pnpm/action-setup@v2.2.4
uses: pnpm/action-setup@v3
with:
version: 7

- name: Node 🧰
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
Expand Down
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
engine-strict=true
use-node-version=14.21.3
use-node-version=18.20.2
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ cp .env.example .env

# fill the env variable

pnpm test:integration
env $(xargs < .env) pnpm test:integration
```

### Docker image
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"test:integration": "jest",
"build": "tsc",
"prepublishOnly": "pnpm build",
"dep:upgrade:major": "pnpx npm-check-updates -u",
"dep:upgrade:minor": "pnpm dep:upgrade:major -t minor"
"dep:major": "pnpm dlx npm-check-updates --packageFile '**/package.json' -u",
"dep:minor": "pnpm dep:major -t minor"
},
"repository": {
"type": "git",
Expand All @@ -37,22 +37,22 @@
},
"homepage": "https://github.com/marcomontalbano/contentful-migration-tool#readme",
"engines": {
"node": ">=14"
"node": ">=18"
},
"dependencies": {
"@types/yargs": "^17.0.22",
"@types/yargs": "^17.0.32",
"chalk": "^4.1.2",
"contentful-management": "^7.54.2",
"yargs": "^17.7.1"
"yargs": "^17.7.2"
},
"devDependencies": {
"@types/jest": "^27.5.2",
"@types/node": "18.14.2",
"contentful-migration": "^4.12.9",
"contentful-migration": "^4.20.2",
"dotenv": "^10.0.0",
"jest": "^27.5.1",
"ts-jest": "^27.1.5",
"ts-node": "^10.9.1",
"ts-node": "^10.9.2",
"typescript": "^4.9.5"
},
"peerDependencies": {
Expand Down
Loading

0 comments on commit b8450c7

Please sign in to comment.