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 00fc52d commit cc85073
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ jobs:
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- name: set version to ${{ env.GITHUB_REF }}
run: sed -i 's/___VERSION___/${{ env.GITHUB_REF }}/g' package.json

- name: set version to $GITHUB_REF
run: sed -i 's/___VERSION___/$GITHUB_REF_VER/g' package.json
env:
GITHUB_REF_VER: $GITHUB_REF
- run: npm ci
- run: npm publish
env:
Expand Down

0 comments on commit cc85073

Please sign in to comment.