Skip to content

Commit 63eac77

Browse files
authored
Merge pull request OpenGeoscience#1092 from OpenGeoscience/beta
fix: Add semantic release.
2 parents 3dc5c77 + 94b38eb commit 63eac77

4 files changed

Lines changed: 13598 additions & 8399 deletions

File tree

.github/workflows/main.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,20 +103,22 @@ jobs:
103103
dist/built/geo.lean.js
104104
dist/built/geo.lean.min.js
105105
deploy-npm:
106-
if: ${{ startswith(github.ref, 'refs/tags/') }}
106+
# if: ${{ startswith(github.ref, 'refs/tags/') }}
107107
needs: build
108108
runs-on: ubuntu-latest
109109
steps:
110110
- uses: actions/checkout@v2
111111
- uses: actions/setup-node@v2
112112
with:
113113
node-version: 15.x
114+
- run: npm ci
114115
- name: Import artifacts
115116
uses: actions/download-artifact@v2
116117
with:
117118
name: dist
118119
path: dist
119-
- uses: JS-DevTools/npm-publish@v1
120-
with:
121-
token: ${{ secrets.NPM_TOKEN }}
122-
dry-run: true
120+
- name: Release
121+
env:
122+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
123+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
124+
run: npx semantic-release

docs/developers.rst

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,8 @@ screen output is used, the browser must be running on the same machine as the
104104
Release Process
105105
---------------
106106

107-
To make a new GeoJS release:
107+
GeoJS is now using semantic-release. Prefix the first line of commit messages with an appropriate prefix, such as ``fix``, ``perf``, ``feat``, ``docs``, ``ci``, ``refactor``, ``style``, ``test``, ``build``, or ``BREAKING CHANGE``. See `<https://github.com/semantic-release/semantic-release/blob/master/CONTRIBUTING.md#type>`_ for details.
108108

109-
- Update the version number in package.json.
110-
- Update the CHANGELOG.md file with changes since the last release
111-
- Commit to GitHub and merge to master
112-
- Tag the commit on GitHub with a tag of the form vX.Y.Z (e.g., v0.17.0).
113-
- After the release appears on GitHub, update the release notes with the changes since the last release.
109+
When the PR is merged to master, a new release will be made if appropriate.
114110

115-
Tagging a commit on the master branch will trigger a build on CI, at the end of which the new version will be published to npm and the build artifacts will be pushed to the tagged version on GitHub.
111+
After the release appears on GitHub, update the ``CHANGELOG.md`` file to reflect these changes.

0 commit comments

Comments
 (0)