From 05271c98fee19b44e14d5805ad93573fd546d6b0 Mon Sep 17 00:00:00 2001 From: Nick the Sick Date: Wed, 3 Jul 2024 17:42:50 +0200 Subject: [PATCH] build: try to update gh action step versions --- .github/workflows/publish.yml | 12 ++++++------ package.json | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) 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",