Skip to content

Commit

Permalink
ci(wc): adapt workflow tag and doc
Browse files Browse the repository at this point in the history
  • Loading branch information
tkohr committed Sep 12, 2023
1 parent dc2c6db commit 8df6c8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/webcomponents.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches:
- main
tags:
- '*.*.*'
- 'v*.*.*'
release:
types: [published]

Expand Down
6 changes: 3 additions & 3 deletions docs/guide/webcomponents.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Web Components are made to be easily included in any context. To do so, you have
- include your Web Component in the HTML content.

```html
<script src="https://cdn.jsdelivr.net/gh/geonetwork/geonetwork-ui@wc-dist-v1.1.0/gn-wc.js"></script>
<script src="https://cdn.jsdelivr.net/gh/geonetwork/geonetwork-ui@wc-dist-v2.0.0/gn-wc.js"></script>
...
<gn-results-list
api-url="https://dev.geo2france.fr/geonetwork/srv/api"
Expand All @@ -33,9 +33,9 @@ Web Components are made to be easily included in any context. To do so, you have

## Publication and Versioning

The Web Component script is automatically built upon merges on main and for releases. These builds are made available via a jsdelivr CDN, which points at `wc-dist` branches in the github repository. There is a `wc-dist` branch for every release tag > `v1.1.0` as well as `wc-dist-main`.
The Web Component script is automatically built upon merges on main and for releases. These builds are made available via a jsdelivr CDN, which points at `wc-dist` branches in the github repository. There is a `wc-dist` branch for every release tag > `v2.0.0` as well as `wc-dist-main`.

You can choose the version of the Web Component script you wish to use by indicating the corresponding value in the script's URL e.g. `wc-dist-v1.1.0`.
You can choose the version of the Web Component script you wish to use by indicating the corresponding value in the script's URL e.g. `wc-dist-v2.0.0`.

## Build

Expand Down

0 comments on commit 8df6c8f

Please sign in to comment.