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 8bf8b29 commit aae0e5f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ jobs:
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- name: set version to ${{github.ref_name}}
run: sed -i 's/___VERSION___/${GITHUB_REF_VER}/g' package.json
env:
GITHUB_REF_VER: ${{github.ref_name}}

- name: set version
run: |
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
sed -i "s/___VERSION___/${RELEASE_VERSION}/g" package.json
- run: npm ci
- run: npm publish
env:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,5 @@ dist
.tern-port

.test/

test/
.docker-compose.yml

0 comments on commit aae0e5f

Please sign in to comment.