From a48e626b63933ab966d9fbcec025d8535481e6b3 Mon Sep 17 00:00:00 2001 From: Phil Sturgeon <67381+philsturgeon@users.noreply.github.com> Date: Tue, 7 Jan 2025 08:42:01 +0000 Subject: [PATCH] chore: remove JS-DevTools/npm-publish (#266) --- .github/workflows/CI-CD.yaml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/CI-CD.yaml b/.github/workflows/CI-CD.yaml index 8bff99e5..ff802cbd 100644 --- a/.github/workflows/CI-CD.yaml +++ b/.github/workflows/CI-CD.yaml @@ -52,7 +52,6 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} parallel: true - coverage: name: Code Coverage runs-on: ubuntu-latest @@ -88,9 +87,9 @@ jobs: run: npm ci - name: Publish to NPM - uses: JS-DevTools/npm-publish@v1 - with: - token: ${{ secrets.NPM_TOKEN }} + run: npm publish --provenance --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Prepare the non-scoped packaged run: | @@ -99,7 +98,7 @@ jobs: sed -i "s/X.X.X/${VERSION}/g" dist/package.json - name: Publish the non-scoped package to NPM - uses: JS-DevTools/npm-publish@v1 - with: - token: ${{ secrets.NPM_TOKEN }} - package: dist/package.json + run: npm publish --provenance --access public + working-directory: dist + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}