Skip to content

Commit

Permalink
feat!: Update to Node 20 (#51)
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan Cooney <ryan.cooney@vertigis.com>
  • Loading branch information
rcooney and Ryan Cooney authored Mar 27, 2024
1 parent cfa6553 commit e334776
Show file tree
Hide file tree
Showing 15 changed files with 10,314 additions and 6,107 deletions.
17 changes: 16 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
module.exports = {
extends: [require.resolve("@vertigis/workflow-sdk/config/.eslintrc")],
ignorePatterns: ["src/FMEServer.js"],
rules: {},
rules: {
"no-restricted-imports": "off",
"@typescript-eslint/no-restricted-imports": [
"error",
{
paths: [
{
name: "@vertigis/workflow",
message:
"This project should only reference types from @vertigis/workflow.",
allowTypeImports: true,
},
],
},
],
},
};
46 changes: 26 additions & 20 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,50 +17,56 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Use Node.js 18
uses: actions/setup-node@v3
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 20.x

- run: npm install

- run: npm run build

- run: npm run lint

- run: cp LICENSE package.json README.md build

- uses: actions/upload-artifact@v3
with:
name: release
path: build/

release:
runs-on: ubuntu-latest
needs:
- test
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
# Pulls all commits (needed for semantic release to correctly version)
# See https://github.com/semantic-release/semantic-release/issues/1526
fetch-depth: "0"
# Pulls all commits and tags (needed for semantic release to correctly version)
fetch-depth: 0
persist-credentials: false
sparse-checkout: |
README.md
# Pulls all tags (needed for semantic release to correctly version)
- name: Fetch git tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*

- name: Use Node.js 18
uses: actions/setup-node@v3
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 20.x

- run: npm install

- run: npm run build

- run: cp LICENSE package.json README.md build
- name: Download release artifact
uses: actions/download-artifact@v3
with:
name: release
path: release

- name: Release 🚀
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release@^19
working-directory: ./build
run: npx semantic-release@^22
working-directory: ./release
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 VertiGIS North America Ltd.
Copyright (c) 2024 VertiGIS North America Ltd.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This project uses `FMEServer.js` provided by [FME](https://playground.fmeserver.

### VertiGIS Studio Workflow Versions

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

### FME Versions

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

0 comments on commit e334776

Please sign in to comment.