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 Jul 4, 2022
1 parent 8d7334a commit a44d852
Showing 1 changed file with 33 additions and 6 deletions.
39 changes: 33 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
build-deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
node-version: 16

- run: npm install
- run: npm run build
Expand All @@ -26,13 +26,13 @@ jobs:

- name: Create Tag
id: create_tag
uses: jaywcjlove/[email protected].6
uses: jaywcjlove/[email protected].7
with:
package-path: ./package.json

- name: get tag version
id: tag_version
uses: jaywcjlove/[email protected].0
uses: jaywcjlove/[email protected].7

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

- name: Generate Changelog
id: changelog
uses: jaywcjlove/[email protected].0
uses: jaywcjlove/[email protected].7
with:
head-ref: ${{steps.create_tag.outputs.version}}
filter-author: (renovate-bot|小弟调调™|dependabot|dependabot\[bot\]|Renovate Bot)
Expand Down Expand Up @@ -74,3 +74,30 @@ jobs:
token: ${{ secrets.NPM_TOKEN }}
package: ./package.json

outputs:
successful: ${{steps.create_tag.outputs.successful }}

github-package:
runs-on: ubuntu-18.04
needs: build-deploy
if: needs.build-deploy.outputs.successful
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://npm.pkg.github.com
scope: '@uiwjs'

- run: npm install
- run: npm run build

- name: Modify @uiw/react-prismjs => @uiwjs/react-prismjs
uses: jaywcjlove/github-action-package@main
with:
data: |
{ "name": "@uiwjs/react-prismjs" }
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit a44d852

Please sign in to comment.