Skip to content

Commit

Permalink
ci: update workflows config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed May 28, 2024
1 parent 71cbd98 commit e85ed01
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
contents: write
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
Expand All @@ -21,7 +21,7 @@ jobs:
- run: npm run create:ast

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
Expand All @@ -42,10 +42,11 @@ jobs:
head-ref: ${{steps.create_tag.outputs.version}}
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'

- name: Generate Changelog
- name: Create Release
uses: jaywcjlove/create-tag-action@main
if: steps.create_tag.outputs.successful
with:
package-path: ./package.json
version: ${{steps.create_tag.outputs.version}}
release: true
body: |
Expand Down Expand Up @@ -121,8 +122,8 @@ jobs:
# http://localhost:9881/
# ```

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

- run: npm publish --access public --provenance
continue-on-error: true
Expand Down

0 comments on commit e85ed01

Please sign in to comment.