Skip to content

Commit

Permalink
chore: update github workflows (#1063)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlmoravek committed Sep 26, 2024
1 parent 4819fb7 commit 08a7364
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 65 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/publish-pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,18 @@ jobs:
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- name: Install dependencies 📦
run: npm install
- name: Publish pre-release
run: npm run publish:pre
- name: Publish Oruga pre-release🐛
run: npm run publish:lib:pre
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm i extract-changelog-release
- name: Generate Release Body
- name: Publish Examples pre-release 🦋
run: npm run publish:examples:pre
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Generate Release Body 📋
run: npm i extract-changelog-release
run: npx extract-changelog-release > RELEASE_BODY.md
- uses: ncipollo/release-action@v1
uses: ncipollo/release-action@v1
with:
bodyFile: 'RELEASE_BODY.md'
prerelease: true
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,22 @@ jobs:
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- name: Install dependencies 📦
run: npm install
- name: Publish release
run: npm run publish
- name: Publish Oruga release 🐛
run: npm run publish:lib
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm i extract-changelog-release
- name: Generate Release Body
- name: Publish Examples release 🦋
run: npm run publish:examples
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Generate Release Body 📋
run: npm i extract-changelog-release
run: npx extract-changelog-release > RELEASE_BODY.md
- uses: ncipollo/release-action@v1
uses: ncipollo/release-action@v1
with:
bodyFile: 'RELEASE_BODY.md'
token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish documentation
- name: Publish documentation 📄
run: |
git push origin develop:master
env:
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@
"packages/docs"
],
"scripts": {
"dev": "concurrently \"npm run dev -w @oruga-ui/oruga-next\" \"npm run dev -w @oruga-ui/docs-next\"",
"dev:watch": "concurrently \"npm run build:lib:watch\" \"npm run build:docs:watch\"",
"dev": "concurrently \"npm run build:lib:watch\" \"npm run build:docs:watch\"",
"test": "npm run test:coverage --workspace @oruga-ui/oruga-next",
"test:ts": "npm run test:ts --workspace @oruga-ui/oruga-next",
"test:watch": "npm run test:watch --workspace @oruga-ui/oruga-next",
"build:docs": "npm run docs:build --workspace @oruga-ui/docs-next",
"build:docs:watch": "npm run docs:dev --workspace @oruga-ui/docs-next",
"build:lib": "npm run build:lib --workspace @oruga-ui/oruga-next",
Expand All @@ -24,8 +22,10 @@
"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": "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",
"publish:examples": "npm run publish --workspace @oruga-ui/examples",
"publish:examples:pre": "npm run publish:pre --workspace @oruga-ui/examples",
"publish:lib": "npm run publish --workspace @oruga-ui/oruga-next",
"publish:lib:pre": "npm run publish:pre --workspace @oruga-ui/oruga-next",
"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
48 changes: 0 additions & 48 deletions packages/docs/components/TabsExample.md

This file was deleted.

1 change: 0 additions & 1 deletion packages/oruga/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
"test": "vitest",
"test:coverage": "vitest run --coverage",
"test:ts": "vue-tsc --noEmit --skipLibCheck",
"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",
Expand Down

0 comments on commit 08a7364

Please sign in to comment.