Skip to content

Commit

Permalink
finalize autotagging
Browse files Browse the repository at this point in the history
  • Loading branch information
warm-coolguy committed Feb 2, 2024
1 parent 22e522b commit 5e45bf4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
7 changes: 3 additions & 4 deletions arcana.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 0 additions & 2 deletions packages/lib/createTestMountParameters/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# CHANGELOG

## 1.3.0-mock-release-for-testing-pipeline.5

## 1.2.0

- Feature: Extend mock state to match current core state type.
Expand Down
2 changes: 0 additions & 2 deletions scripts/publishPackages.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,13 @@ for (const path of packages) {
const nextVersion = checkForNewVersion(path)
if (nextVersion) {
const context = { cwd: path, stdio: 'inherit' }
/*
cp.execSync('npm version ' + nextVersion, context)
cp.execSync(
'npm set //registry.npmjs.org/:_authToken ' +
process.env.NODE_AUTH_TOKEN,
{ cwd: path }
)
cp.execSync('npm publish --access=public', context)
*/
tags.push(`${getPackageName(path)}@${nextVersion}`)
}
} catch (e) {
Expand Down

0 comments on commit 5e45bf4

Please sign in to comment.