From e803e9262d8c5826b02328019084b7dc31841d1a Mon Sep 17 00:00:00 2001 From: zvolin Date: Thu, 26 Sep 2024 15:26:37 +0200 Subject: [PATCH] chore(ci): fix double npm release by separating jobs --- .github/workflows/release-plz.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/release-plz.yml b/.github/workflows/release-plz.yml index 5b37337c..65c03eac 100644 --- a/.github/workflows/release-plz.yml +++ b/.github/workflows/release-plz.yml @@ -100,6 +100,28 @@ jobs: echo "Version updated: ${node_wasm_version}" fi + release-npm: + name: Release-npm + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + token: ${{ secrets.RELEASE_PLZ_TOKEN }} + + - name: Install Protoc + uses: arduino/setup-protoc@v2 + with: + version: "23.3" + repo-token: ${{ secrets.GITHUB_TOKEN }} + + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable + + - name: Install wasm-pack + uses: jetli/wasm-pack-action@v0.4.0 + - name: Release to npm env: NPM_REGISTRY_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }}