Skip to content

Commit

Permalink
Attempt to fix publishing to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
victorquinn committed May 29, 2024
1 parent 5dbb0ac commit f5b39c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16' # Ensure this matches your Node.js version
node-version: '20'

- name: Install dependencies
run: npm install
Expand All @@ -41,10 +41,11 @@ jobs:
exit 1
else
echo "Version $CURRENT_VERSION is new and will be published."
echo "new_version=true" >> $GITHUB_ENV
fi
- name: Publish to npm
if: ${{ success() && steps.version_check.outputs.version != '' }}
if: env.new_version == 'true'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
Expand Down

0 comments on commit f5b39c8

Please sign in to comment.