From fa7da1d4dff3d7c43aec4d08226eb5c1cd4e9c70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduardo=20Bou=C3=A7as?= Date: Tue, 3 May 2022 13:28:07 +0100 Subject: [PATCH] chore: add release-please action --- .github/workflows/release-please.yml | 33 ++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/release-please.yml diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 00000000..4bd63623 --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,33 @@ +name: release-please +on: + push: + branches: + - main +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: navikt/github-app-token-generator@a9cd374e271b8aef573b8c16ac46c44fb89b02db + id: get-token + with: + private-key: ${{ secrets.TOKENS_PRIVATE_KEY }} + app-id: ${{ secrets.TOKENS_APP_ID }} + - uses: GoogleCloudPlatform/release-please-action@v3 + id: release + with: + token: ${{ steps.get-token.outputs.token }} + release-type: node + package-name: '@netlify/edge-bundler' + - uses: actions/checkout@v3 + if: ${{ steps.release.outputs.release_created }} + - uses: actions/setup-node@v3 + with: + node-version: '*' + cache: 'npm' + check-latest: true + registry-url: 'https://registry.npmjs.org' + if: ${{ steps.release.outputs.release_created }} + - run: npm publish + if: ${{ steps.release.outputs.release_created }} + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}