Skip to content

Commit 87db745

Browse files
authored
fix dependencies (#35)
2 parents c7a8b50 + b50ea2b commit 87db745

File tree

13 files changed

+522
-654
lines changed

13 files changed

+522
-654
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @tjcouch-sil @lyonsil
1+
* @tjcouch-sil @lyonsil @irahopkinson

.github/actions/bump-versions-action/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ runs:
1414
# Bump versions using the built-in git token https://github.com/actions/checkout/tree/v4/?tab=readme-ov-file#push-a-commit-using-the-built-in-token
1515
shell: bash
1616
run: |
17+
cd ${GITHUB_ACTION_PATH}/../../..
1718
git config user.name "github-actions[bot]"
1819
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
1920
npm run bump-versions -- ${{ inputs.newVersion }}

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ jobs:
119119

120120
- name: Bump repo versions
121121
if: ${{ inputs.newVersionAfterPublishing != '' }}
122-
uses: ./.github/actions/bump-versions-action
122+
uses: ./extension-repo/.github/actions/bump-versions-action
123123
with:
124124
newVersion: ${{ inputs.newVersionAfterPublishing }}
125125

README.md

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -143,16 +143,9 @@ To package these extensions into a zip file for distribution:
143143

144144
These steps will walk you through releasing a version on GitHub and bumping the version to a new version so future changes apply to the new in-progress version. These release workflows and scripts expect that all extensions in this repo are on the same version.
145145

146-
1. Make sure the versions in this repo are on the version number you want to release. If they are not, run the `bump-versions` npm script to set the versions to what you want to release. This script will create a branch named `bump-versions-<version>` from your current head with the needed changes. Open a PR and merge that new branch into the branch you plan to release from. For example, to bump branch `my-branch` to version 0.2.0, run the following:
146+
1. Make sure the versions in this repo are on the version number you want to release. If they are not, manually dispatch the [Bump Versions workflow](#bumping-version-without-publishing-a-release) or run the `bump-versions` npm script to set the versions to what you want to release on the branch you want to release from.
147147

148-
```bash
149-
git checkout my-branch
150-
npm run bump-versions 0.2.0
151-
```
152-
153-
Then create a PR and merge the `bump-versions-0.2.0` branch into `my-branch`. `my-branch` is now ready for release.
154-
155-
2. Manually dispatch the Publish workflow in GitHub Actions targeting the branch you want to release from (in the previous example, this would be `my-branch`). This workflow creates a new pre-release for the version you intend to release and creates a new `bump-versions-<next_version>` branch to bump the version after the release so future changes apply to a new in-progress version instead of to the already released version. This workflow has the following inputs:
148+
2. Manually dispatch the Publish workflow in GitHub Actions targeting the branch you want to release from. This workflow creates a new pre-release for the version you intend to release and creates a new `bump-versions-<next_version>` branch to bump the version after the release so future changes apply to a new in-progress version instead of to the already released version. This workflow has the following inputs:
156149

157150
- `version`: Enter the version you intend to publish (e.g. 0.2.0). This is simply for verification to make sure you release the code that you intend to release. It is compared to the version in the code, and the workflow will fail if they do not match.
158151
- `newVersionAfterPublishing`: Enter the version you want to bump to after releasing (e.g. 0.3.0-alpha.0). Future changes will apply to this new version instead of to the version that was already released. Leave blank if you don't want to bump.
@@ -195,6 +188,25 @@ These steps will walk you through releasing a version on GitHub and bumping the
195188
3. In GitHub, adjust the new draft release's body and other metadata as desired, then publish the release.
196189
4. Open a PR and merge the newly created `bump-versions-<next_version>` branch.
197190

191+
### Bumping version without publishing a release
192+
193+
Sometimes, it may be useful to change the version without [publishing a release](#publishing).
194+
195+
To bump versions without publishing a release, manually dispatch the Bump Versions workflow in GitHub Actions targeting the branch on which you want to change versions. Alternatively, you can run the `bump-versions` npm script. This workflow will create a branch named `bump-versions-<version>` from the target branch (or, if running the script, your current head) with the needed changes. Open a PR and merge that new branch into the branch on which you want to change versions.
196+
197+
This workflow has the following inputs:
198+
199+
- `newVersion`: enter the version you want to bump to (e.g. 0.3.0-alpha.0). Future changes will apply to this new version instead of to the version.
200+
201+
For example, to bump branch `my-branch` to version `0.2.0`, run the following:
202+
203+
```bash
204+
git checkout my-branch
205+
npm run bump-versions -- 0.2.0
206+
```
207+
208+
Then create a PR and merge the `bump-versions-0.2.0` branch into `my-branch`. `my-branch` is now ready for release.
209+
198210
### Publishing problems
199211

200212
Following are some problems you may encounter while publishing and steps to solve them.
@@ -208,7 +220,7 @@ Module build failed (from ./node_modules/swc-loader/src/index.js):
208220
Error: Failed to load native binding
209221
```
210222

211-
You may have a different effective version of `@swc/core` than `paranext-core` does. Please make sure the version of `@swc/core` in your `package-lock.json` is the same as its version in [`paranext-core/package-lock.json`](https://github.com/paranext/paranext-core/blob/main/package-lock.json). If they are not the same, please fix them to be the same by running `npm i -D @swc/core@<version>` where the version is the version of `@swc/core` installed in `paranext-core/package-lock.json` (if you would like to set the version of `@swc/core` back to what it was before in `package.json` to stay synced with the extension template, change it back manually in `package.json` and then run `npm i`). If they are already the same, you may need to try regenerating your `package-lock.json` file by deleting it and running `npm i`.
223+
Please see ["Failed to load native binding" in the Troubleshooting guide for how to solve this problem](https://github.com/paranext/paranext/wiki/Troubleshooting-Guide#failed-to-load-native-binding).
212224

213225
## To create a new extension in this repo
214226

0 commit comments

Comments
 (0)