Skip to content

Commit

Permalink
ci: update pre-release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mlmoravek committed Jul 12, 2024
1 parent b9a546f commit eb856b4
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/publish-pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
# Always release the tag version
# ref: ${GITHUB_REF}
# Always release the tag ${GITHUB_REF} version
- name: Setup Node
uses: actions/setup-node@v4
with:
Expand All @@ -23,8 +22,8 @@ jobs:
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- name: Install dependencies 📦
run: npm install
- name: Build lib
run: npm run publish
- name: Publish pre-release
run: npm run publish:pre
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm i extract-changelog-release
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- name: Install dependencies 📦
run: npm install
- name: Build lib
- name: Publish release
run: npm run publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@
"gen:volar": "node .scripts/gen-volar-dts.mjs --bundle --platform=node",
"gen:types": "node .scripts/gen-comp-types.mjs --bundle --platform=node",
"gen:docs": "npm run docs:gen --workspace @oruga-ui/docs-next",
"publish": "concurrently \"npm run publish:lib\" \"npm run publish:examples\"",
"publish:lib": "npm run publish --workspace @oruga-ui/oruga-next",
"publish:examples": "npm run publish --workspace @oruga-ui/examples",
"publish": "npm run publish --workspace @oruga-ui/oruga-next && npm run publish --workspace @oruga-ui/examples",
"publish:pre": "npm run publish:pre --workspace @oruga-ui/oruga-next && npm run publish:pre --workspace @oruga-ui/examples",
"release": "npm run version && npm run changelog",
"version": "node .scripts/sync-version.js && git add .",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s && node .scripts/wait-confirm && git add CHANGELOG.md",
Expand Down
3 changes: 2 additions & 1 deletion packages/examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
],
"repository": {
"type": "git",
"url": "https://github.com/oruga-ui/oruga"
"url": "git+https://github.com/oruga-ui/oruga.git"
},
"bugs": {
"url": "https://github.com/oruga-ui/oruga/issues"
Expand All @@ -46,6 +46,7 @@
"scripts": {
"build": "rimraf dist && vite build",
"publish": "cp ../../README.md . && npm run build && npm publish",
"publish:pre": "cp ../../README.md . && npm run build && npm publish --tag pre",
"update": "ncu -u"
},
"peerDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion packages/oruga/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
],
"repository": {
"type": "git",
"url": "https://github.com/oruga-ui/oruga"
"url": "git+https://github.com/oruga-ui/oruga.git"
},
"bugs": {
"url": "https://github.com/oruga-ui/oruga/issues"
Expand Down Expand Up @@ -63,6 +63,7 @@
"test:watch": "rm -rf .nyc_output coverage && NODE_ENV=test cypress open --component",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --quiet --ignore-path .gitignore",
"publish": "cp ../../README.md . && npm run build:lib && npm publish",
"publish:pre": "cp ../../README.md . && npm run build:lib && npm publish --tag pre",
"update": "ncu -u"
},
"peerDependencies": {
Expand Down

0 comments on commit eb856b4

Please sign in to comment.