From 8191af6a51e337c6d3d028bbe662505227db5fc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Fri, 16 Oct 2020 15:12:11 +0200 Subject: [PATCH 1/2] chore: auto-publish package to npm after release --- .github/workflows/release-please.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 7762a2ea..4e615f51 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -8,9 +8,25 @@ on: jobs: release-please: runs-on: ubuntu-latest + outputs: + release_created: ${{ steps.release.outputs.release_created }} steps: - uses: google-github-actions/release-please-action@v3 + id: release with: token: ${{ secrets.GITHUB_TOKEN }} release-type: node package-name: node-core-utils + npm-publish: + needs: release-please + if: ${{ needs.release-please.outputs.release_created }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16.x + registry-url: 'https://registry.npmjs.org' + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} From 1bd61fe5ad8d895621e01d97a74a5ad6aeacff25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Fri, 8 Apr 2022 07:57:51 +0200 Subject: [PATCH 2/2] Update .github/workflows/release-please.yml --- .github/workflows/release-please.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 4e615f51..dbaedc3c 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -29,4 +29,4 @@ jobs: registry-url: 'https://registry.npmjs.org' - run: npm publish env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}