From c6d09afd8b653e62ee67500a211d69cd07e46b0e Mon Sep 17 00:00:00 2001 From: Lucas Holmquist Date: Wed, 31 May 2023 13:42:47 -0400 Subject: [PATCH] chore: add publish automation (#166) --- .github/workflows/release-please.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 0988548..193c63a 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -8,7 +8,24 @@ jobs: runs-on: ubuntu-latest steps: - uses: GoogleCloudPlatform/release-please-action@v3 + id: release with: token: ${{ secrets.GITHUB_TOKEN }} release-type: node package-name: npcheck + + - uses: actions/checkout@v3 + if: ${{ steps.release.outputs.release_created }} + - uses: actions/setup-node@v3 + with: + node-version: 16 + registry-url: 'https://registry.npmjs.org' + if: ${{ steps.release.outputs.release_created }} + - run: npm ci + if: ${{ steps.release.outputs.release_created }} + - run: npm test + if: ${{ steps.release.outputs.release_created }} + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.NPCHECK_PUBLISH}} + if: ${{ steps.release.outputs.release_created }}