diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7244562..d127c3e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,11 +22,11 @@ jobs: cache-dependency-path: ./yarn.lock cache: "yarn" node-version: 20 + registry-url: "https://registry.npmjs.org" - - uses: bahmutov/npm-install@3e063b974f0d209807684aa23e534b3dde517fd9 # v1.11.2 - with: - useLockFile: false - + - name: Install dependencies + run: yarn install --frozen-lockfile --non-interactive + - name: Build run: yarn build @@ -38,7 +38,7 @@ jobs: - run: "npm version ${VERSION} --no-git-tag-version" - - uses: JS-DevTools/npm-publish@7f8fe47b3bea1be0c3aec2b717c5ec1f3e03410b # v4.1.1 - with: - token: ${{ secrets.NPM_TOKEN }} - access: public + - name: Publish to NPM + run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}