diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 79d80ad..de65233 100755 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -17,13 +17,13 @@ jobs: - uses: actions/checkout@v4 - name: Set up Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: '18' - name: Install dependencies run: | - yarn install + npm install - name: Publish to NPM run: | diff --git a/bin/publish-npm b/bin/publish-npm index 4c21181..a9a225d 100755 --- a/bin/publish-npm +++ b/bin/publish-npm @@ -5,7 +5,7 @@ set -eux npm config set '//registry.npmjs.org/:_authToken' "$NPM_TOKEN" # Build the project -yarn build +npm run build # Navigate to the dist directory cd dist @@ -22,4 +22,4 @@ else fi # Publish with the appropriate tag -yarn publish --access public --tag "$TAG" +npm publish --access public --tag "$TAG"