Skip to content

Commit e334776

Browse files
rcooneyRyan Cooney
andauthored
feat!: Update to Node 20 (#51)
Co-authored-by: Ryan Cooney <ryan.cooney@vertigis.com>
1 parent cfa6553 commit e334776

15 files changed

+10314
-6107
lines changed

.eslintrc.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
module.exports = {
22
extends: [require.resolve("@vertigis/workflow-sdk/config/.eslintrc")],
33
ignorePatterns: ["src/FMEServer.js"],
4-
rules: {},
4+
rules: {
5+
"no-restricted-imports": "off",
6+
"@typescript-eslint/no-restricted-imports": [
7+
"error",
8+
{
9+
paths: [
10+
{
11+
name: "@vertigis/workflow",
12+
message:
13+
"This project should only reference types from @vertigis/workflow.",
14+
allowTypeImports: true,
15+
},
16+
],
17+
},
18+
],
19+
},
520
};

.github/workflows/ci-cd.yml

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,50 +17,56 @@ jobs:
1717
test:
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
2121

22-
- name: Use Node.js 18
23-
uses: actions/setup-node@v3
22+
- name: Use Node.js 20
23+
uses: actions/setup-node@v4
2424
with:
25-
node-version: 18.x
25+
node-version: 20.x
2626

2727
- run: npm install
2828

2929
- run: npm run build
3030

3131
- run: npm run lint
3232

33+
- run: cp LICENSE package.json README.md build
34+
35+
- uses: actions/upload-artifact@v3
36+
with:
37+
name: release
38+
path: build/
39+
3340
release:
3441
runs-on: ubuntu-latest
3542
needs:
3643
- test
3744
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta'
3845
steps:
39-
- uses: actions/checkout@v3
46+
- uses: actions/checkout@v4
4047
with:
41-
# Pulls all commits (needed for semantic release to correctly version)
42-
# See https://github.com/semantic-release/semantic-release/issues/1526
43-
fetch-depth: "0"
48+
# Pulls all commits and tags (needed for semantic release to correctly version)
49+
fetch-depth: 0
4450
persist-credentials: false
51+
sparse-checkout: |
52+
README.md
4553
46-
# Pulls all tags (needed for semantic release to correctly version)
47-
- name: Fetch git tags
48-
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
49-
50-
- name: Use Node.js 18
51-
uses: actions/setup-node@v3
54+
- name: Use Node.js 20
55+
uses: actions/setup-node@v4
5256
with:
53-
node-version: 18.x
57+
node-version: 20.x
5458

5559
- run: npm install
5660

57-
- run: npm run build
58-
59-
- run: cp LICENSE package.json README.md build
61+
- name: Download release artifact
62+
uses: actions/download-artifact@v3
63+
with:
64+
name: release
65+
path: release
6066

6167
- name: Release 🚀
6268
env:
6369
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6470
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
65-
run: npx semantic-release@^19
66-
working-directory: ./build
71+
run: npx semantic-release@^22
72+
working-directory: ./release

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2023 VertiGIS North America Ltd.
3+
Copyright (c) 2024 VertiGIS North America Ltd.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This project uses `FMEServer.js` provided by [FME](https://playground.fmeserver.
1111

1212
### VertiGIS Studio Workflow Versions
1313

14-
The FME activities are designed to work with VertiGIS Studio Workflow versions `5.20` and above.
14+
The FME activities are designed to work with VertiGIS Studio Workflow versions `5.38` and above.
1515

1616
### FME Versions
1717

@@ -30,8 +30,9 @@ To use the FME activities in [VertiGIS Studio Workflow Designer](https://apps.ve
3030
- Purpose: `Ready To Use`
3131
- API: `JavaScript`
3232
- URL: The URL to this activity pack manifest
33-
- Use https://unpkg.com/@vertigis/workflow-activities-fme/activitypack.json for the latest version
34-
- Use https://unpkg.com/@vertigis/workflow-activities-fme@3.0.0/activitypack.json for a specific version
33+
- Use https://unpkg.com/@vertigis/workflow-activities-fme@4.0.0/activitypack.json for a specific version
34+
- Use https://unpkg.com/@vertigis/workflow-activities-fme@4/activitypack.json for the latest revision of a specific major version
35+
- Use https://unpkg.com/@vertigis/workflow-activities-fme/activitypack.json for the latest version (not recommended for production use)
3536
- Use https://localhost:5000/activitypack.json for a local development version
3637
- Title: Your desired title
3738
- Tags: Must include `geocortex-workflow-activity-pack`

0 commit comments

Comments
 (0)