Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Kafil Nasdami committed Mar 14, 2024
1 parent da3bd26 commit ce44ad0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,16 @@ jobs:
CURRENT_VERSION=$(jq -r '.version' package.json)
LAST_PUBLISHED_VERSION=$(npm show ${{ env.PACKAGE_NAME }} version)
if [ "$CURRENT_VERSION" == "$LAST_PUBLISHED_VERSION" ]; then
echo "::set-output name=version_changed::false"
echo "version_changed=false" >> $GITHUB_ENV
exit 1
else
echo "::set-output name=version_changed::true"
echo "version_changed=true" >> $GITHUB_ENV
fi
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "14"
node-version: "20"

- name: Install dependencies
run: npm install
Expand Down

0 comments on commit ce44ad0

Please sign in to comment.