build: try to update gh action step versions

This commit is contained in:
Nick the Sick 2024-07-03 17:42:50 +02:00
parent 4cbb09ef6d
commit 05271c98fe
No known key found for this signature in database
GPG Key ID: F575992F156E5BCC
2 changed files with 8 additions and 8 deletions

View File

@ -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'

View File

@ -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",