diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 0f960aa8a..000000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: publish -on: push -jobs: - main: - name: Publish CI tagged release for MDX - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - uses: dcodeIO/setup-node-nvm@master - - run: 'echo "to do: figure out npm"' - # - run: npm install -g yarn && yarn --frozen-lockfile - # env: - # CI: 'true' - # - name: Publish CI tag to npm - # if: github.ref == 'refs/heads/main' - # run: | - # npm set //registry.npmjs.org/:_authToken $NPM_AUTH_TOKEN - # yarn publish-ci - # env: - # NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} diff --git a/docs/community/contribute.server.mdx b/docs/community/contribute.server.mdx index d7f114951..84eaa883e 100644 --- a/docs/community/contribute.server.mdx +++ b/docs/community/contribute.server.mdx @@ -97,9 +97,23 @@ This produces the website in `public/`. To release a new version, do: -* Draft a release for the next version (vX.X.X) -* `yarn && yarn test && yarn lerna publish --force-publish` -* Publish release on GitHub +1. update `version`s of packages with a patch, minor, or major (make sure to + update dependency ranges on monorepo packages when needed): + ```sh + npm version minor --workspaces --no-git-tag-version + ``` +2. commit and tag using the version (without `v`) as the message: + ```sh + git commit --all --message 1.2.3 && git tag 1.2.3 && git push && git push --tags + ``` +3. release to the npm registry: + ```sh + npm publish --workspaces + ``` +4. add a changelog entry for the release on GitHub: + ```sh + open https://github.com/mdx-js/mdx/releases + ``` ## Resources diff --git a/package.json b/package.json index 9997896d5..7b238cc5c 100644 --- a/package.json +++ b/package.json @@ -131,8 +131,6 @@ "docs-deploy": "vercel && vercel alias $(pbpaste) mdxjs.com && vercel alias $(pbpaste) www.mdxjs.com", "format": "remark . -qfo && remark . -e mdx -u mdx -qfo && prettier . -w --loglevel warn && xo --fix", "lint": "remark . -qf && remark . -e mdx -u mdx -qf && prettier . -c --loglevel warn && xo", - "publish-ci": "# lerna publish -y --canary --preid ci --pre-dist-tag ci", - "publish-next": "# lerna publish --force-publish=\"*\" --pre-dist-tag next --preid next", "build": "npm run build --workspaces --if-present", "test-api": "npm run test-api --workspaces --if-present", "test-coverage": "npm run test-coverage --workspaces --if-present",