diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c878b0843..ca18bde0a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,13 +18,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Node 20 - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 20 - registry-url: https://registry.npmjs.org/ + node-version: '20.x' + registry-url: 'https://registry.npmjs.org/' - name: Install Dependencies run: npm ci @@ -37,7 +37,7 @@ jobs: publish: npm run publish env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{secrets.NPM_TOKEN}} + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - name: Create Release PR or publish pre version to npm if: github.ref_name != 'main' @@ -47,7 +47,7 @@ jobs: publish: npm run publish:pre env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{secrets.NPM_TOKEN}} + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - name: Send release notification if: steps.changesets.outputs.published == 'true' || steps.changesets_pre.outputs.published == 'true' diff --git a/package.json b/package.json index 13e96a45e..4b833753b 100644 --- a/package.json +++ b/package.json @@ -22,8 +22,8 @@ "build:pm": "npm run build --workspace packages/pm", "build:demos": "npm run build:demos --workspace demos", "build:ci": "npm run build", - "publish": "npm run build && npm publish --workspace packages --tag latest --access public", - "publish:pre": "npm run build && npm publish --workspace packages --tag next --access public", + "publish": "npm run build && npm publish --workspace packages --provenance --tag latest --access public", + "publish:pre": "npm run build && npm publish --workspace packages --provenance --tag next --access public", "clean:packages": "rm -rf ./packages/*/dist && rm -rf ./packages/pm/*/dist", "clean:packs": "rm -rf ./packages/*/*.tgz", "reset": "npm run clean:packages && npm run clean:packs && rm -rf ./**/.cache && rm -rf ./**/node_modules && rm -rf ./package-lock.json && npm install",