| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d7a8c07 commit 1b0cc79
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -77,6 +77,16 @@ jobs: | |||
| 77 | 77 | echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV | |
| 78 | 78 | ./tools/update-undici.sh | |
| 79 | 79 | fi | |
| 80 | + - id: postject | ||
| 81 | + subsystem: deps | ||
| 82 | + label: dependencies | ||
| 83 | + run: | | ||
| 84 | + NEW_VERSION=$(npm view postject dist-tags.latest) | ||
| 85 | + CURRENT_VERSION=$(node -p "require('./test/fixtures/postject-copy/node_modules/postject/package.json').version") | ||
| 86 | + if [ "$NEW_VERSION" != "$CURRENT_VERSION" ]; then | ||
| 87 | + echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV | ||
| 88 | + ./tools/dep_updaters/update-postject.sh | ||
| 89 | + fi | ||
| 80 | 90 | - id: base64 | |
| 81 | 91 | subsystem: deps | |
| 82 | 92 | label: dependencies | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,23 @@ | |||
| 1 | + # Maintaining postject | ||
| 2 | + | ||
| 3 | + The [postject](https://github.com/nodejs/postject) dependency is used for the | ||
| 4 | + [Single Executable strategic initiative](https://github.com/nodejs/single-executable). | ||
| 5 | + | ||
| 6 | + ## Updating postject | ||
| 7 | + | ||
| 8 | + The `tools/dep_updaters/update-postject.sh` script automates the update of the | ||
| 9 | + postject source files. | ||
| 10 | + | ||
| 11 | + Check that Node.js still builds and tests. | ||
| 12 | + | ||
| 13 | + ## Committing postject | ||
| 14 | + | ||
| 15 | + Add postject: `git add --all test/fixtures/postject-copy` | ||
| 16 | + | ||
| 17 | + Commit the changes with a message like: | ||
| 18 | + | ||
| 19 | + ```text | ||
| 20 | + deps: update postject to 1.0.0-alpha.4 | ||
| 21 | + | ||
| 22 | + Updated as described in doc/contributing/maintaining-postject.md. | ||
| 23 | + ``` | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -60,3 +60,23 @@ been created with the changes), do the following: | |||
| 60 | 60 | 3. Check that Node.js compiles without errors and the tests pass. | |
| 61 | 61 | 4. Create a commit for the update and in the commit message include the | |
| 62 | 62 | important/relevant items from the changelog. | |
| 63 | + | ||
| 64 | + ## postject | ||
| 65 | + | ||
| 66 | + The `update-postject.sh` script downloads postject from the [npm package](http://npmjs.com/package/postject) | ||
| 67 | + and uses it to replace the contents of `test/fixtures/postject-copy`. | ||
| 68 | + | ||
| 69 | + In order to update, the following command can be run: | ||
| 70 | + | ||
| 71 | + ```bash | ||
| 72 | + ./tools/dep_updaters/update-postject.sh | ||
| 73 | + ``` | ||
| 74 | + | ||
| 75 | + Once the script has run (either manually, or by CI in which case a PR will have | ||
| 76 | + been created with the changes), do the following: | ||
| 77 | + | ||
| 78 | + 1. Check the [changelog](https://github.com/nodejs/postject/releases/tag/v1.0.0-alpha.4) | ||
| 79 | + for things that might require changes in Node.js. | ||
| 80 | + 2. Check that Node.js compiles without errors and the tests pass. | ||
| 81 | + 3. Create a commit for the update and in the commit message include the | ||
| 82 | + important/relevant items from the changelog. | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,22 @@ | |||
| 1 | + #!/bin/sh | ||
| 2 | + | ||
| 3 | + # Shell script to update postject in the source tree to the latest release. | ||
| 4 | + | ||
| 5 | + # This script must be in the tools directory when it runs because it uses the | ||
| 6 | + # script source file path to determine directories to work in. | ||
| 7 | + | ||
| 8 | + set -ex | ||
| 9 | + | ||
| 10 | + cd "$( dirname "$0" )/../.." || exit | ||
| 11 | + rm -rf test/fixtures/postject-copy | ||
| 12 | + mkdir test/fixtures/postject-copy | ||
| 13 | + cd test/fixtures/postject-copy || exit | ||
| 14 | + | ||
| 15 | + ROOT="$PWD/../../.." | ||
| 16 | + [ -z "$NODE" ] && NODE="$ROOT/out/Release/node" | ||
| 17 | + [ -x "$NODE" ] || NODE=$(command -v node) | ||
| 18 | + NPM="$ROOT/deps/npm/bin/npm-cli.js" | ||
| 19 | + | ||
| 20 | + "$NODE" "$NPM" init --yes | ||
| 21 | + | ||
| 22 | + "$NODE" "$NPM" install --no-bin-links --ignore-scripts postject | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments