From eff853e2c05022d0df084f70afa94ace34e4a529 Mon Sep 17 00:00:00 2001 From: gentlementlegen Date: Tue, 2 Jul 2024 14:45:07 +0200 Subject: [PATCH 1/3] chore: changed the NPM token name for release-please.yml --- .github/workflows/release-please.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 4821f8f..21d3a0a 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -16,7 +16,7 @@ jobs: steps: - uses: googleapis/release-please-action@v4 with: - token: ${{ secrets.PAT_TOKEN }} + token: ${{ secrets.NPM_TOKEN }} release-type: node - uses: actions/checkout@v4 - uses: actions/setup-node@v4 @@ -24,4 +24,4 @@ jobs: node-version: "20.10.0" registry-url: https://registry.npmjs.org/ - run: | - yarn install --immutable --immutable-cache --check-cache \ No newline at end of file + yarn install --immutable --immutable-cache --check-cache From d8b346a4a8a90780779f095d6acdcfb700aaa375 Mon Sep 17 00:00:00 2001 From: gentlementlegen Date: Tue, 2 Jul 2024 15:01:03 +0200 Subject: [PATCH 2/3] chore: pack and publish with yarn --- .github/workflows/release-please.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 21d3a0a..301868f 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -6,22 +6,26 @@ on: branches: - main -permissions: - contents: write - pull-requests: write - jobs: release-please: runs-on: ubuntu-latest steps: - uses: googleapis/release-please-action@v4 + id: release with: - token: ${{ secrets.NPM_TOKEN }} release-type: node - uses: actions/checkout@v4 + if: ${{ steps.release.outputs.release_created }} - uses: actions/setup-node@v4 with: node-version: "20.10.0" - registry-url: https://registry.npmjs.org/ + registry-url: "https://registry.npmjs.org" + if: ${{ steps.release.outputs.release_created }} - run: | yarn install --immutable --immutable-cache --check-cache + yarn pack + if: ${{ steps.release.outputs.release_created }} + - run: yarn publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + if: ${{ steps.release.outputs.release_created }} From ff1ef339414382100663cf12357c66a3a0a849a3 Mon Sep 17 00:00:00 2001 From: gentlementlegen Date: Tue, 2 Jul 2024 15:02:15 +0200 Subject: [PATCH 3/3] chore: permission added for release-please.yml --- .github/workflows/release-please.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 301868f..6e5043b 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -6,6 +6,10 @@ on: branches: - main +permissions: + contents: write + pull-requests: write + jobs: release-please: runs-on: ubuntu-latest