Skip to content

Commit

Permalink
chore: update workflows config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Nov 5, 2022
1 parent 9c7bdb5 commit df1b5b6
Showing 1 changed file with 5 additions and 24 deletions.
29 changes: 5 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand All @@ -17,26 +17,13 @@ jobs:
- run: npm run hoist
- run: npm run build
- run: npm run build:dist
- run: npm run build:wc

- run: mkdir -p website
- run: cp -rp packages/markdown-to-html/dist/*.js website
- run: cp -rp packages/markdown-to-html/dist/*.css website

- run: mkdir -p website/lib

- run: cp -rp packages/markdown-style/lib/*.js website/lib

- name: action-ejs
uses: jaywcjlove/action-ejs@main
with:
template-file: packages/markdown-style/demo.html
output: website/style.html
vars-file: |
{
"markdownString": "./packages/markdown-style/README.md"
}
- name: Generate Contributors Images
uses: jaywcjlove/github-action-contributors@main
with:
Expand All @@ -46,13 +33,13 @@ jobs:

- name: Create Tag
id: create_tag
uses: jaywcjlove/create-tag-action@v1.3.6
uses: jaywcjlove/create-tag-action@main
with:
package-path: packages/markdown-to-html/package.json

- name: get tag version
id: tag_version
uses: jaywcjlove/changelog-generator@v1.5.0
uses: jaywcjlove/changelog-generator@main

- name: 🌐 Generate Documentation Website
uses: jaywcjlove/action-ejs@main
Expand All @@ -73,7 +60,7 @@ jobs:

- name: Generate Changelog
id: changelog
uses: jaywcjlove/changelog-generator@v1.5.0
uses: jaywcjlove/changelog-generator@main
with:
head-ref: ${{steps.create_tag.outputs.version}}
filter-author: (renovate-bot|Renovate Bot)
Expand Down Expand Up @@ -106,10 +93,4 @@ jobs:
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: packages/markdown-to-html/package.json

- name: 📦 @wcj/markdown-style publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: packages/markdown-style/package.json
package: packages/markdown-to-html/package.json

0 comments on commit df1b5b6

Please sign in to comment.