From 47419f179ddea394c3a7953db4569fe3e2aa1ef8 Mon Sep 17 00:00:00 2001 From: Sebastiaan Marynissen Date: Wed, 31 Jan 2024 22:36:04 +0100 Subject: [PATCH 1/2] Update npm-publish.yml --- .github/workflows/npm-publish.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index a27be3f..81e2d00 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -22,6 +22,9 @@ jobs: env: TAG_NAME: ${{ github.event.release.tag_name }} + - name: Installing dependencies + run: npm ci + - name: Build run: npm run build From 859ddd664b010be810c3f4e0d2f8654fc9ade40b Mon Sep 17 00:00:00 2001 From: Sebastiaan Marynissen Date: Wed, 31 Jan 2024 22:36:53 +0100 Subject: [PATCH 2/2] Install dependencies before tagging --- .github/workflows/npm-publish.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 81e2d00..ea56add 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -18,13 +18,14 @@ jobs: node-version: 20 registry-url: https://registry.npmjs.org/ cache: npm - - run: npm version ${TAG_NAME} --git-tag-version=false - env: - TAG_NAME: ${{ github.event.release.tag_name }} - name: Installing dependencies run: npm ci + - run: npm version ${TAG_NAME} --git-tag-version=false + env: + TAG_NAME: ${{ github.event.release.tag_name }} + - name: Build run: npm run build