From 5dd882c9692de02afec2005049a4ef782356396d Mon Sep 17 00:00:00 2001 From: Sasha <118575614+weboko@users.noreply.github.com> Date: Mon, 6 Nov 2023 10:39:06 +0100 Subject: [PATCH] chore: make pre-release manual (#1702) * make pre-release manual * update md file --- .github/workflows/ci.yml | 23 ----------------------- .github/workflows/pre-release.yml | 25 +++++++++++++++++++++++++ CONTRIBUTING.md | 9 +++++++++ 3 files changed, 34 insertions(+), 23 deletions(-) create mode 100644 .github/workflows/pre-release.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 46988480ca..f57da9be15 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -96,29 +96,6 @@ jobs: test_type: nwaku-master debug: waku* - pre-release: - name: pre-release - runs-on: ubuntu-latest - if: github.event_name == 'push' && github.ref == 'refs/heads/master' - needs: [check, proto, browser, node] - steps: - - uses: actions/checkout@v3 - with: - repository: waku-org/js-waku - - - uses: actions/setup-node@v3 - with: - node-version: ${{ env.NODE_JS }} - registry-url: "https://registry.npmjs.org" - - - run: npm install - - - run: npm run build - - - run: npm run publish -- --tag next - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_JS_WAKU_PUBLISH }} - maybe-release: name: release runs-on: ubuntu-latest diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml new file mode 100644 index 0000000000..77cf70f0e5 --- /dev/null +++ b/.github/workflows/pre-release.yml @@ -0,0 +1,25 @@ +on: + workflow_dispatch: + +jobs: + pre-release: + name: pre-release + runs-on: ubuntu-latest + if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/master' + steps: + - uses: actions/checkout@v3 + with: + repository: waku-org/js-waku + + - uses: actions/setup-node@v3 + with: + node-version: ${{ env.NODE_JS }} + registry-url: "https://registry.npmjs.org" + + - run: npm install + + - run: npm run build + + - run: npm run publish -- --tag next + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_JS_WAKU_PUBLISH }} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 05d7f04b4c..e7c708a434 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -60,3 +60,12 @@ Commit messages should never contain any `@` mentions (usernames prefixed with " Please refer to the [Git manual](https://git-scm.com/doc) for more information about Git. + +### Releasing + +`js-waku` has two types of releases: +- public releases; +- pre releases; + +Public releases happen by merging PRs opened by `release-please` action. +Pre releases happen manually by triggering [this workflow](https://github.com/waku-org/js-waku/actions/workflows/pre-release.yml)