From c54d9bc2d8d0084bb5f1431d6ab478cbdd6b29a0 Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Fri, 8 Jul 2022 12:34:52 -0400 Subject: [PATCH] build: use manifest releaser for release please (#1768) --- .github/workflows/release-cli.yaml | 42 ------------------------------ .github/workflows/release.yaml | 31 ++-------------------- .release-please-manifest.json | 1 + release-please-config.json | 7 +++++ 4 files changed, 10 insertions(+), 71 deletions(-) delete mode 100644 .github/workflows/release-cli.yaml create mode 100644 .release-please-manifest.json create mode 100644 release-please-config.json diff --git a/.github/workflows/release-cli.yaml b/.github/workflows/release-cli.yaml deleted file mode 100644 index c9be3ef43..000000000 --- a/.github/workflows/release-cli.yaml +++ /dev/null @@ -1,42 +0,0 @@ -on: - push: - branches: - - master -name: release-please -jobs: - release-please-pr: - runs-on: ubuntu-latest - steps: - - id: release-pr - uses: google-github-actions/release-please-action@v3 - with: - token: ${{ secrets.GITHUB_TOKEN }} - release-type: node - package-name: protobufjs-cli - command: release-pr - path: cli - release-please-release: - runs-on: ubuntu-latest - steps: - - uses: google-github-actions/release-please-action@v3 - id: tag-release - with: - token: ${{ secrets.GITHUB_TOKEN }} - release-type: node - package-name: protobufjs-cli - command: github-release - path: cli - - uses: actions/checkout@v2 - if: ${{ steps.tag-release.outputs.release_created }} - - uses: actions/setup-node@v1 - if: ${{ steps.tag-release.outputs.release_created }} - with: - node-version: 14 - registry-url: 'https://wombat-dressing-room.appspot.com/' - - name: publish - if: ${{ steps.tag-release.outputs.release_created }} - env: - NODE_AUTH_TOKEN: ${{secrets.NPM_CLI_TOKEN}} - run: | - npm install - npm publish diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 098cc619d..4ebb3991f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -4,37 +4,10 @@ on: - master name: release-please jobs: - release-please-pr: - runs-on: ubuntu-latest - steps: - - id: release-pr - uses: google-github-actions/release-please-action@v3 - with: - token: ${{ secrets.GITHUB_TOKEN }} - release-type: node - package-name: protobufjs - command: release-pr - release-please-release: + release-please: runs-on: ubuntu-latest steps: - uses: google-github-actions/release-please-action@v3 - id: tag-release with: - token: ${{ secrets.GITHUB_TOKEN }} release-type: node - package-name: protobufjs - command: github-release - - uses: actions/checkout@v2 - if: ${{ steps.tag-release.outputs.release_created }} - - uses: actions/setup-node@v1 - if: ${{ steps.tag-release.outputs.release_created }} - with: - node-version: 14 - registry-url: 'https://wombat-dressing-room.appspot.com/' - - name: publish - if: ${{ steps.tag-release.outputs.release_created }} - env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - run: | - npm install - npm publish + package-name: release-please-action diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 000000000..ffa456885 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1 @@ +{".":"6.0.0","cli":"0.1.0"} diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 000000000..ee2a5dbb2 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,7 @@ +{ + "bootstrap-sha": "6fc37d9ea3502cdc08ef988494c041aacd0f7e7f", + "packages": { + "cli": {}, + ".": {} + } +} \ No newline at end of file