Skip to content
This repository has been archived by the owner on Feb 19, 2023. It is now read-only.

Commit

Permalink
workflow update
Browse files Browse the repository at this point in the history
  • Loading branch information
janithcooray committed Jun 26, 2022
1 parent 0f9ffe6 commit 6d364f0
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:

- name: set version
run: |
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
echo "${RELEASE_VERSION}"
sed -i "s/___VERSION___/${RELEASE_VERSION}/g" package.json
echo ${{steps.tag.outputs.tag}}
echo ${{steps.tag.outputs.tag}}
sed -i "s/___VERSION___/${{steps.tag.outputs.tag}}/g" package.json
- uses: actions/setup-node@v3
with:
Expand All @@ -36,10 +36,7 @@ jobs:
registry-url: https://registry.npmjs.org/

- name: set version
run: |
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
echo "${RELEASE_VERSION}"
sed -i "s/___VERSION___/${RELEASE_VERSION}/g" package.json
run: sed -i "s/___VERSION___/${{steps.tag.outputs.tag}}/g" package.json

- run: npm ci
- run: npm publish
Expand Down

0 comments on commit 6d364f0

Please sign in to comment.