Skip to content

Commit

Permalink
release: test
Browse files Browse the repository at this point in the history
  • Loading branch information
warm-coolguy committed Feb 5, 2024
1 parent a409d7b commit 5aedfb1
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions arcana.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ 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, 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.
3. Push to main. A pipeline is now running that detects the CHANGELOG change, updates the version, publishes the package to NPM, creates a tag `@polar/[email protected]`, and procudes a GitHub release.
4. If it's a client, add the NPM package to the release 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 2 additions & 4 deletions scripts/createRelease.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ const tags = process.argv.slice(2)
const github = getOctokit({ auth: process.env.GITHUB_TOKEN })
const { owner, repo } = context.repo

console.info('-----------------------------')
console.info(typeof process.env.GITHUB_TOKEN)
console.info('-----------------------------')

const camelize = (strings) =>
strings[0] +
strings
Expand All @@ -26,6 +22,8 @@ function getBody(tag) {

if (nameParts[0] === 'core' || nameParts[0] === 'components') {
filePath = `./packages/${nameParts[0]}`
} else if (name === 'lib-custom-types') {
filePath = `./packages/types/custom`
} else if (nameParts[0] === 'plugin' || nameParts[0] === 'client') {
filePath = `./packages/${nameParts[0]}s/${camelize(nameParts.slice(1))}`
} else if (nameParts[0] === 'lib') {
Expand Down

0 comments on commit 5aedfb1

Please sign in to comment.