mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-23 19:19:03 +08:00
build: try to update gh action step versions
This commit is contained in:
parent
4cbb09ef6d
commit
05271c98fe
12
.github/workflows/publish.yml
vendored
12
.github/workflows/publish.yml
vendored
@ -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'
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user