-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix/narrower-type
- Loading branch information
Showing
4 changed files
with
27 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,8 @@ on: | |
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
matrix: ${{ steps.matrix.outputs.TAGS }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
|
@@ -17,10 +19,19 @@ jobs: | |
node-version: 18.13.0 | ||
registry-url: https://registry.npmjs.org/ | ||
- run: npm ci | ||
- run: npm run publishPackages | ||
- run: echo "TAGS=$(node ./scripts/publishPackages)" >> $GITHUB_ENV | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- uses: EndBug/add-and-commit@v9 | ||
with: | ||
author_name: Dataport Geo Bot | ||
author_email: [email protected] | ||
- run: | | ||
for TAG in ${{ env.TAGS }} | ||
do | ||
git config user.name "Dataport Geo Bot" | ||
git config user.email "[email protected]" | ||
git tag $TAG | ||
git push origin $TAG | ||
echo "Released and tagged $TAG" | ||
done |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,9 @@ For these cases, this not-so-secret file denotes our not-anymore-arcane knowledg | |
|
||
1. Draw a dependency tree of POLAR packages with changes documented as `"unpublished"` in their respective `CHANGELOG.md` files. | ||
2. Start with the leafs. Update the version from `"unpublished"` to the appropriate version indicated by the nature of changes. If required, change the package.json dependencies to refer to minimum versions of dependencies used. | ||
3. Push to main. A pipeline is now running that detects the CHANGELOG change, updates the version, and publishes the package to NPM. | ||
4. Pull. Tag the last commit with `git tag @polar/[email protected]` appropriately for all packages released in that commit. `git push --tags` to push tags to GitHub. | ||
5. Create new release note on GitHub. Select the previously created tag, use it as title, and copy the relevant changelog. Link to the NPM package. If it's a client, add the NPM package to the artifacts for an easier download. See previous releases for formatting of contents and artifacts. | ||
6. Delete leafs from tree made in `1`. Go back to `2` until the tree is empty. | ||
3. Push to main. A pipeline is now running that detects the CHANGELOG change, updates the version, publishes the package to NPM, and creates a tag `@polar/[email protected]`. | ||
4. Create new release note on GitHub. Select the previously created tag, use it as title, and copy the relevant changelog. Link to the NPM package. If it's a client, add the NPM package to the artifacts for an easier download. See previous releases for formatting of contents and artifacts. | ||
5. Delete leafs from tree made in `1`. Go back to `2` until the tree is empty. | ||
|
||
## Update process | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters