Skip to content

Commit

Permalink
ci: update workflow config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 25, 2024
1 parent 403ad38 commit 483b32c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 16 deletions.
36 changes: 21 additions & 15 deletions .github/workflows/ci.yml
Expand Up @@ -10,6 +10,9 @@ env:
jobs:
build-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -33,21 +36,6 @@ jobs:
output: build/CONTRIBUTORS.svg
avatarSize: 42

# - run: npm install @jsdevtools/npm-publish -g
# - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json

- run: npm publish --access public --provenance
name: πŸ“¦ @uiw/react-code-preview publish to NPM
continue-on-error: true
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

# - name: πŸ“¦ πŸ“¦ @uiw/react-code-preview πŸ“¦ πŸ“¦
# uses: JS-DevTools/npm-publish@v1
# with:
# token: ${{ secrets.NPM_TOKEN }}
# package: package.json

- name: Create Tag
id: create_tag
uses: jaywcjlove/create-tag-action@main
Expand Down Expand Up @@ -94,3 +82,21 @@ jobs:
```
${{ steps.changelog.outputs.changelog }}
- name: package.json info
uses: jaywcjlove/github-action-package@main
with:
unset: scripts,lint-staged,eslintConfig,browserslist
# - run: npm install @jsdevtools/npm-publish -g
# - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json

- run: npm publish --access public --provenance
name: πŸ“¦ @uiw/react-code-preview publish to NPM
continue-on-error: true
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

# - name: πŸ“¦ πŸ“¦ @uiw/react-code-preview πŸ“¦ πŸ“¦
# uses: JS-DevTools/npm-publish@v1
# with:
# token: ${{ secrets.NPM_PUBLISH_TOKEN }}
# package: package.json
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -23,7 +23,7 @@
"homepage": "https://uiwjs.github.io/react-code-preview",
"repository": {
"type": "git",
"url": "https://github.com/uiwjs/react-code-preview"
"url": "git+https://github.com/uiwjs/react-code-preview.git"
},
"files": [
"src",
Expand Down

0 comments on commit 483b32c

Please sign in to comment.