From 5e45bf4754bfe121aecd61cd2c8a503951c6df22 Mon Sep 17 00:00:00 2001 From: Dennis Sen Date: Fri, 2 Feb 2024 09:27:25 +0100 Subject: [PATCH] finalize autotagging --- arcana.md | 7 +++---- packages/lib/createTestMountParameters/CHANGELOG.md | 2 -- scripts/publishPackages.js | 2 -- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/arcana.md b/arcana.md index 929c28b93..7ac76cf88 100644 --- a/arcana.md +++ b/arcana.md @@ -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/package-name@x.y.z` 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/package-name@x.y.z`. +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 diff --git a/packages/lib/createTestMountParameters/CHANGELOG.md b/packages/lib/createTestMountParameters/CHANGELOG.md index 4b3ffb89e..8ce0524ad 100644 --- a/packages/lib/createTestMountParameters/CHANGELOG.md +++ b/packages/lib/createTestMountParameters/CHANGELOG.md @@ -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. diff --git a/scripts/publishPackages.js b/scripts/publishPackages.js index de22fd797..25db8ff2d 100644 --- a/scripts/publishPackages.js +++ b/scripts/publishPackages.js @@ -32,7 +32,6 @@ 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 ' + @@ -40,7 +39,6 @@ for (const path of packages) { { cwd: path } ) cp.execSync('npm publish --access=public', context) - */ tags.push(`${getPackageName(path)}@${nextVersion}`) } } catch (e) {