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 Feb 15, 2023
1 parent b27e3be commit 9ea5419
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ on:

jobs:
build:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'

- run: npm install
- run: npm install --workspaces
Expand All @@ -28,13 +29,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: ./core/package.json

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

- name: Deploy Website
uses: peaceiris/actions-gh-pages@v3
Expand All @@ -47,7 +48,7 @@ jobs:

- name: Generate Changelog
id: changelog
uses: jaywcjlove/changelog-generator@v1.5.3
uses: jaywcjlove/changelog-generator@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
filter-author: (小弟调调™|dependabot\[bot\]|Renovate Bot)
Expand Down Expand Up @@ -78,7 +79,9 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./website/build

- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./core/package.json
- run: npm publish
name: 📦 markdown-react-code-preview-loader publish to NPM
working-directory: core
continue-on-error: true
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 9ea5419

Please sign in to comment.