Skip to content

Commit

Permalink
feat!: Node 20 (#12)
Browse files Browse the repository at this point in the history
- Update to Node 20
- Update to latest workflow SDK
  • Loading branch information
rcooney authored Mar 26, 2024
1 parent ff0d2ee commit 9a14b31
Show file tree
Hide file tree
Showing 8 changed files with 11,117 additions and 7,659 deletions.
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@v2
- uses: actions/checkout@v4

- name: Use Node.js 18
uses: actions/setup-node@v1
- 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@v2
- 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@v1
- 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
working-directory: ./build
run: npx semantic-release@^22
working-directory: ./release
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"tabWidth": 4
}
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
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This project uses [fast-xml-parser](https://www.npmjs.com/package/fast-xml-parse

### VertiGIS Studio Workflow Versions

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

## Usage
To use the XML activities in [VertiGIS Studio Workflow Designer](https://apps.vertigisstudio.com/workflow/designer/) you need to register an activity pack and then add the activities to a workflow.
Expand All @@ -23,8 +23,9 @@ To use the XML 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-xml/activitypack.json for the latest version
- Use https://unpkg.com/@vertigis/[email protected]/activitypack.json for a specific version
- Use https://unpkg.com/@vertigis/workflow-activities-xml@1/activitypack.json for the latest revision of a specific major version
- Use https://unpkg.com/@vertigis/workflow-activities-xml/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 9a14b31

Please sign in to comment.