From 8196fa16fd0e526b89b56cab81db1d2a0ea746ec Mon Sep 17 00:00:00 2001 From: Steven Bazyl Date: Mon, 10 May 2021 21:00:47 -0600 Subject: [PATCH] Move release-please to app (for CLA reasons), update workflow to publish on github release event --- .github/workflows/release-please.yaml | 32 --------------------------- .github/workflows/release.yaml | 17 ++++++++++++++ 2 files changed, 17 insertions(+), 32 deletions(-) delete mode 100644 .github/workflows/release-please.yaml create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release-please.yaml b/.github/workflows/release-please.yaml deleted file mode 100644 index 385581e1..00000000 --- a/.github/workflows/release-please.yaml +++ /dev/null @@ -1,32 +0,0 @@ -on: - push: - branches: - - master -name: release-please -jobs: - release-please: - runs-on: ubuntu-latest - steps: - - uses: GoogleCloudPlatform/release-please-action@v2 - id: release - with: - token: ${{ secrets.GITHUB_TOKEN }} - release-type: node - package-name: '@google/clasp' - # The logic below handles the npm publication: - - uses: actions/checkout@v2 - # these if statements ensure that a publication only occurs when - # a new release is created: - if: ${{ steps.release.outputs.release_created }} - - uses: actions/setup-node@v1 - with: - node-version: 12 - registry-url: 'https://wombat-dressing-room.appspot.com' - if: ${{ steps.release.outputs.release_created }} - # if you are using Yarn, substitute the command below with `yarn install --frozen-lockfile` - - run: npm ci - if: ${{ steps.release.outputs.release_created }} - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{secrets.WOMBAT_DRESSING_ROOM_TOKEN}} - if: ${{ steps.release.outputs.release_created }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 00000000..c34a387b --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,17 @@ +on: + release: + types: [created] +name: release +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 12 + registry-url: 'https://wombat-dressing-room.appspot.com' + - run: npm ci + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.WOMBAT_DRESSING_ROOM_TOKEN}}