From 8bf8b296da44857bf60c74cb938d596134451f14 Mon Sep 17 00:00:00 2001 From: janithcooray Date: Sun, 26 Jun 2022 23:23:05 +0530 Subject: [PATCH] workflow update --- .github/workflows/npm-publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 2f2b0c0..ad212bf 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -27,10 +27,10 @@ jobs: with: node-version: 16 registry-url: https://registry.npmjs.org/ - - name: set version to $GITHUB_REF - run: sed -i 's/___VERSION___/$GITHUB_REF_VER/g' package.json + - name: set version to ${{github.ref_name}} + run: sed -i 's/___VERSION___/${GITHUB_REF_VER}/g' package.json env: - GITHUB_REF_VER: $GITHUB_REF + GITHUB_REF_VER: ${{github.ref_name}} - run: npm ci - run: npm publish env: